Class: Restful::ApiModel::Attribute
- Inherits:
-
Object
- Object
- Restful::ApiModel::Attribute
- Defined in:
- lib/restful/apimodel/attribute.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#extended_type ⇒ Object
Returns the value of attribute extended_type.
-
#name ⇒ Object
Returns the value of attribute name.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, value, extended_type) ⇒ Attribute
constructor
A new instance of Attribute.
Constructor Details
#initialize(name, value, extended_type) ⇒ Attribute
Returns a new instance of Attribute.
9 10 11 12 13 14 |
# File 'lib/restful/apimodel/attribute.rb', line 9 def initialize(name, value, extended_type) self.name = name self.value = value self.extended_type = extended_type self.type = :simple_attribute end |
Instance Attribute Details
#extended_type ⇒ Object
Returns the value of attribute extended_type.
7 8 9 |
# File 'lib/restful/apimodel/attribute.rb', line 7 def extended_type @extended_type end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/restful/apimodel/attribute.rb', line 7 def name @name end |
#type ⇒ Object
Returns the value of attribute type.
7 8 9 |
# File 'lib/restful/apimodel/attribute.rb', line 7 def type @type end |
#value ⇒ Object
Returns the value of attribute value.
7 8 9 |
# File 'lib/restful/apimodel/attribute.rb', line 7 def value @value end |