Class: Rumx::AttributeInfo
- Inherits:
-
Object
- Object
- Rumx::AttributeInfo
- Defined in:
- lib/rumx/attribute_info.rb
Instance Attribute Summary collapse
-
#ancestry ⇒ Object
readonly
Returns the value of attribute ancestry.
-
#attribute ⇒ Object
readonly
Returns the value of attribute attribute.
-
#bean ⇒ Object
readonly
Returns the value of attribute bean.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(attribute, bean, ancestry, value) ⇒ AttributeInfo
constructor
A new instance of AttributeInfo.
- #value_to_s ⇒ Object
Constructor Details
#initialize(attribute, bean, ancestry, value) ⇒ AttributeInfo
Returns a new instance of AttributeInfo.
5 6 7 8 9 10 |
# File 'lib/rumx/attribute_info.rb', line 5 def initialize(attribute, bean, ancestry, value) @attribute = attribute @bean = bean @ancestry = ancestry @value = value end |
Instance Attribute Details
#ancestry ⇒ Object (readonly)
Returns the value of attribute ancestry.
3 4 5 |
# File 'lib/rumx/attribute_info.rb', line 3 def ancestry @ancestry end |
#attribute ⇒ Object (readonly)
Returns the value of attribute attribute.
3 4 5 |
# File 'lib/rumx/attribute_info.rb', line 3 def attribute @attribute end |
#bean ⇒ Object (readonly)
Returns the value of attribute bean.
3 4 5 |
# File 'lib/rumx/attribute_info.rb', line 3 def bean @bean end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
3 4 5 |
# File 'lib/rumx/attribute_info.rb', line 3 def value @value end |
Instance Method Details
#value_to_s ⇒ Object
12 13 14 |
# File 'lib/rumx/attribute_info.rb', line 12 def value_to_s @attribute.type.value_to_string(@value) end |