Class: Apipony::ResponseAttribute::EnumChoice
- Inherits:
-
Object
- Object
- Apipony::ResponseAttribute::EnumChoice
- Defined in:
- lib/apipony/response_attribute.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, description: "") ⇒ EnumChoice
constructor
A new instance of EnumChoice.
Constructor Details
#initialize(name, description: "") ⇒ EnumChoice
Returns a new instance of EnumChoice.
119 120 121 122 |
# File 'lib/apipony/response_attribute.rb', line 119 def initialize(name, description: "") @name = name @description = description end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
118 119 120 |
# File 'lib/apipony/response_attribute.rb', line 118 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
118 119 120 |
# File 'lib/apipony/response_attribute.rb', line 118 def name @name end |