Class: ApiTwister::ApiAttribute
- Inherits:
-
Object
- Object
- ApiTwister::ApiAttribute
- Defined in:
- lib/api-twister/api_attribute.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#data_type ⇒ Object
Returns the value of attribute data_type.
-
#description ⇒ Object
Returns the value of attribute description.
-
#name ⇒ Object
Returns the value of attribute name.
-
#required ⇒ Object
Returns the value of attribute required.
Instance Method Summary collapse
-
#initialize(name, data_type, description, required) ⇒ ApiAttribute
constructor
A new instance of ApiAttribute.
Constructor Details
#initialize(name, data_type, description, required) ⇒ ApiAttribute
Returns a new instance of ApiAttribute.
5 6 7 8 9 10 |
# File 'lib/api-twister/api_attribute.rb', line 5 def initialize(name, data_type, description, required) @name = name @description = description @data_type = data_type @required = required end |
Instance Attribute Details
#data_type ⇒ Object
Returns the value of attribute data_type.
3 4 5 |
# File 'lib/api-twister/api_attribute.rb', line 3 def data_type @data_type end |
#description ⇒ Object
Returns the value of attribute description.
3 4 5 |
# File 'lib/api-twister/api_attribute.rb', line 3 def description @description end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/api-twister/api_attribute.rb', line 3 def name @name end |
#required ⇒ Object
Returns the value of attribute required.
3 4 5 |
# File 'lib/api-twister/api_attribute.rb', line 3 def required @required end |