Class: AtomicAdmin::Schema::AtomicApplicationUpdateSchema
- Inherits:
-
Object
- Object
- AtomicAdmin::Schema::AtomicApplicationUpdateSchema
- Defined in:
- lib/atomic_admin/schema/atomic_application_update_schema.rb
Instance Attribute Summary collapse
-
#application ⇒ Object
Returns the value of attribute application.
Instance Method Summary collapse
-
#initialize(application) ⇒ AtomicApplicationUpdateSchema
constructor
A new instance of AtomicApplicationUpdateSchema.
- #schema ⇒ Object
- #uischema ⇒ Object
Constructor Details
#initialize(application) ⇒ AtomicApplicationUpdateSchema
Returns a new instance of AtomicApplicationUpdateSchema.
5 6 7 |
# File 'lib/atomic_admin/schema/atomic_application_update_schema.rb', line 5 def initialize(application) @application = application end |
Instance Attribute Details
#application ⇒ Object
Returns the value of attribute application.
3 4 5 |
# File 'lib/atomic_admin/schema/atomic_application_update_schema.rb', line 3 def application @application end |
Instance Method Details
#schema ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/atomic_admin/schema/atomic_application_update_schema.rb', line 9 def schema { type: "object", properties: { description: { type: "string", }, oauth_key: { type: ["string", "null"], }, oauth_secret: { type: ["string", "null"], secret: { preview: "ouath_secret_preview", value: "oauth_secret" } }, } } end |
#uischema ⇒ Object
30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 |
# File 'lib/atomic_admin/schema/atomic_application_update_schema.rb', line 30 def uischema { type: "VerticalLayout", elements: [ { type: "Control", scope: "#/properties/description", options: { format: "textarea", props: { size: "full", resize: "vertical" } } }, { type: "Control", scope: "#/properties/oauth_key", }, { type: "Control", scope: "#/properties/oauth_secret", }, ] } end |