Class: EntityCard

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(entity) ⇒ EntityCard

Returns a new instance of EntityCard.



8
9
10
# File 'lib/rbbt/rest/entity/entity_card.rb', line 8

def initialize(entity)
  @entity = entity
end

Instance Attribute Details

#action_controllerObject

Returns the value of attribute action_controller.



5
6
7
# File 'lib/rbbt/rest/entity/entity_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_card.rb', line 4

def description
  @description
end

#entityObject

Returns the value of attribute entity.



3
4
5
# File 'lib/rbbt/rest/entity/entity_card.rb', line 3

def entity
  @entity
end

#list_containerObject

Returns the value of attribute list_container.



5
6
7
# File 'lib/rbbt/rest/entity/entity_card.rb', line 5

def list_container
  @list_container
end

#long_nameObject

Returns the value of attribute long_name.



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

def long_name
  @long_name
end

#metaObject

Returns the value of attribute meta.



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

def meta
  @meta
end

#nameObject

Returns the value of attribute name.



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

def name
  @name
end

#sectionsObject

Returns the value of attribute sections.



6
7
8
# File 'lib/rbbt/rest/entity/entity_card.rb', line 6

def sections
  @sections
end

Instance Method Details

#add_section(name, &block) ⇒ Object



17
18
19
# File 'lib/rbbt/rest/entity/entity_card.rb', line 17

def add_section(name, &block)
  sections[name] = block
end