Class: Apiture::Swagger::Property
- Inherits:
-
DataTypeField
- Object
- Node
- DataTypeField
- Apiture::Swagger::Property
- Defined in:
- lib/apiture/swagger/property.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(id) ⇒ Property
constructor
A new instance of Property.
Methods inherited from Node
attribute, attribute_names, #collect_errors, collect_errors, #extensions, hash, hash_names, inherited, list, list_names, #serializable_hash, #to_json, #valid?, #validate
Methods included from Utils::Inflections
acronym_regex, acronyms, #camelize, #constantize, #underscore
Constructor Details
#initialize(id) ⇒ Property
Returns a new instance of Property.
8 9 10 11 |
# File 'lib/apiture/swagger/property.rb', line 8 def initialize(id) super() @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
6 7 8 |
# File 'lib/apiture/swagger/property.rb', line 6 def id @id end |