Class: Shirinji::Attribute
- Inherits:
-
Object
- Object
- Shirinji::Attribute
- Defined in:
- lib/shirinji/attribute.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#reference ⇒ Object
readonly
Returns the value of attribute reference.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name, reference = nil, value = nil) ⇒ Attribute
constructor
A new instance of Attribute.
Constructor Details
#initialize(name, reference = nil, value = nil) ⇒ Attribute
Returns a new instance of Attribute.
7 8 9 10 11 |
# File 'lib/shirinji/attribute.rb', line 7 def initialize(name, reference = nil, value = nil) @name = name @reference = reference @value = value end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/shirinji/attribute.rb', line 5 def name @name end |
#reference ⇒ Object (readonly)
Returns the value of attribute reference.
5 6 7 |
# File 'lib/shirinji/attribute.rb', line 5 def reference @reference end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
5 6 7 |
# File 'lib/shirinji/attribute.rb', line 5 def value @value end |