Class: Apipony::ResponseAttribute::EnumChoice

Inherits:
Object
  • Object
show all
Defined in:
lib/apipony/response_attribute.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#descriptionObject

Returns the value of attribute description.



118
119
120
# File 'lib/apipony/response_attribute.rb', line 118

def description
  @description
end

#nameObject

Returns the value of attribute name.



118
119
120
# File 'lib/apipony/response_attribute.rb', line 118

def name
  @name
end