Class: EntityListCard

Inherits:
Object
  • Object
show all
Defined in:
lib/rbbt/rest/entity/entity_list_card.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_controllerObject

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

#descriptionObject

Returns the value of attribute description.



4
5
6
# File 'lib/rbbt/rest/entity/entity_list_card.rb', line 4

def description
  @description
end

#listObject

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_containerObject

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_idObject

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

#metaObject

Returns the value of attribute meta.



4
5
6
# File 'lib/rbbt/rest/entity/entity_list_card.rb', line 4

def meta
  @meta
end

#sectionsObject

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