Class: AppStoreDevApi::Specification::Component::Schema
- Inherits:
-
Object
- Object
- AppStoreDevApi::Specification::Component::Schema
- Defined in:
- lib/app_store_dev_api/specification/component/schema.rb
Instance Method Summary collapse
-
#initialize(declaration) ⇒ Schema
constructor
A new instance of Schema.
- #properties ⇒ Object
- #required ⇒ Object
- #title ⇒ Object
Constructor Details
#initialize(declaration) ⇒ Schema
Returns a new instance of Schema.
7 8 9 |
# File 'lib/app_store_dev_api/specification/component/schema.rb', line 7 def initialize(declaration) @declaration = declaration end |
Instance Method Details
#properties ⇒ Object
11 12 13 |
# File 'lib/app_store_dev_api/specification/component/schema.rb', line 11 def properties @declaration['properties'] end |
#required ⇒ Object
15 16 17 |
# File 'lib/app_store_dev_api/specification/component/schema.rb', line 15 def required @declaration['required'] end |
#title ⇒ Object
19 20 21 |
# File 'lib/app_store_dev_api/specification/component/schema.rb', line 19 def title @declaration['title'] end |