Class: AppStoreDevApi::Specification::Component::Schema

Inherits:
Object
  • Object
show all
Defined in:
lib/app_store_dev_api/specification/component/schema.rb

Instance Method Summary collapse

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

#propertiesObject



11
12
13
# File 'lib/app_store_dev_api/specification/component/schema.rb', line 11

def properties
  @declaration['properties']
end

#requiredObject



15
16
17
# File 'lib/app_store_dev_api/specification/component/schema.rb', line 15

def required
  @declaration['required']
end

#titleObject



19
20
21
# File 'lib/app_store_dev_api/specification/component/schema.rb', line 19

def title
  @declaration['title']
end