Class: Deep::Hash::Struct::Dashboard::Table::Row
- Inherits:
-
Object
- Object
- Deep::Hash::Struct::Dashboard::Table::Row
- Includes:
- PP::Dashboard::Table::Row
- Defined in:
- lib/deep/hash/struct/dashboard/table/row.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#opt ⇒ Object
Returns the value of attribute opt.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
- #header? ⇒ Boolean
-
#initialize(options = {}) ⇒ Row
constructor
A new instance of Row.
- #side? ⇒ Boolean
- #side_header? ⇒ Boolean
Methods included from PP::Dashboard::Table::Row
Constructor Details
#initialize(options = {}) ⇒ Row
Returns a new instance of Row.
13 14 15 16 17 |
# File 'lib/deep/hash/struct/dashboard/table/row.rb', line 13 def initialize( = {}) self.value = .delete(:value) self.name = .delete(:name) self.opt = .merge() end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/deep/hash/struct/dashboard/table/row.rb', line 9 def name @name end |
#opt ⇒ Object
Returns the value of attribute opt.
9 10 11 |
# File 'lib/deep/hash/struct/dashboard/table/row.rb', line 9 def opt @opt end |
#value ⇒ Object
Returns the value of attribute value.
9 10 11 |
# File 'lib/deep/hash/struct/dashboard/table/row.rb', line 9 def value @value end |
Instance Method Details
#header? ⇒ Boolean
19 20 21 |
# File 'lib/deep/hash/struct/dashboard/table/row.rb', line 19 def header? opt[:header] end |
#side? ⇒ Boolean
23 24 25 |
# File 'lib/deep/hash/struct/dashboard/table/row.rb', line 23 def side? opt[:side] end |
#side_header? ⇒ Boolean
27 28 29 |
# File 'lib/deep/hash/struct/dashboard/table/row.rb', line 27 def side_header? header? && side? end |