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