Class: EntityListCard
- Inherits:
-
Object
- Object
- EntityListCard
- Defined in:
- lib/rbbt/rest/entity/entity_list_card.rb
Instance Attribute Summary collapse
-
#action_controller ⇒ Object
Returns the value of attribute action_controller.
-
#description ⇒ Object
Returns the value of attribute description.
-
#list ⇒ Object
Returns the value of attribute list.
-
#list_container ⇒ Object
Returns the value of attribute list_container.
-
#list_id ⇒ Object
Returns the value of attribute list_id.
-
#meta ⇒ Object
Returns the value of attribute meta.
-
#sections ⇒ Object
Returns the value of attribute sections.
Instance Method Summary collapse
- #add_section(name, &block) ⇒ Object
-
#initialize(list, list_id) ⇒ EntityListCard
constructor
A new instance of EntityListCard.
Constructor Details
#initialize(list, list_id) ⇒ EntityListCard
Returns a new instance of EntityListCard.
8 9 10 |
# File 'lib/rbbt/rest/entity/entity_list_card.rb', line 8 def initialize(list, list_id) @list, @list_id = list, list_id end |
Instance Attribute Details
#action_controller ⇒ Object
Returns the value of attribute action_controller.
5 6 7 |
# File 'lib/rbbt/rest/entity/entity_list_card.rb', line 5 def action_controller @action_controller end |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/rbbt/rest/entity/entity_list_card.rb', line 4 def description @description end |
#list ⇒ Object
Returns the value of attribute list.
3 4 5 |
# File 'lib/rbbt/rest/entity/entity_list_card.rb', line 3 def list @list end |
#list_container ⇒ Object
Returns the value of attribute list_container.
5 6 7 |
# File 'lib/rbbt/rest/entity/entity_list_card.rb', line 5 def list_container @list_container end |
#list_id ⇒ Object
Returns the value of attribute list_id.
3 4 5 |
# File 'lib/rbbt/rest/entity/entity_list_card.rb', line 3 def list_id @list_id end |
#meta ⇒ Object
Returns the value of attribute meta.
4 5 6 |
# File 'lib/rbbt/rest/entity/entity_list_card.rb', line 4 def @meta end |
#sections ⇒ Object
Returns the value of attribute sections.
6 7 8 |
# File 'lib/rbbt/rest/entity/entity_list_card.rb', line 6 def sections @sections end |
Instance Method Details
#add_section(name, &block) ⇒ Object
16 17 18 |
# File 'lib/rbbt/rest/entity/entity_list_card.rb', line 16 def add_section(name, &block) sections[name] = block end |