Class: Apiture::Swagger::Definition
- Defined in:
- lib/apiture/swagger/definition.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(id = "<Inline>") ⇒ Definition
constructor
A new instance of Definition.
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 = "<Inline>") ⇒ Definition
Returns a new instance of Definition.
14 15 16 17 |
# File 'lib/apiture/swagger/definition.rb', line 14 def initialize(id = "<Inline>") super() @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
7 8 9 |
# File 'lib/apiture/swagger/definition.rb', line 7 def id @id end |