Class: EntityCard
- Inherits:
-
Object
- Object
- EntityCard
- Defined in:
- lib/rbbt/rest/entity/entity_card.rb
Instance Attribute Summary collapse
-
#action_controller ⇒ Object
Returns the value of attribute action_controller.
-
#description ⇒ Object
Returns the value of attribute description.
-
#entity ⇒ Object
Returns the value of attribute entity.
-
#list_container ⇒ Object
Returns the value of attribute list_container.
-
#long_name ⇒ Object
Returns the value of attribute long_name.
-
#meta ⇒ Object
Returns the value of attribute meta.
-
#name ⇒ Object
Returns the value of attribute name.
-
#sections ⇒ Object
Returns the value of attribute sections.
Instance Method Summary collapse
- #add_section(name, &block) ⇒ Object
-
#initialize(entity) ⇒ EntityCard
constructor
A new instance of EntityCard.
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_controller ⇒ Object
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 |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/rbbt/rest/entity/entity_card.rb', line 4 def description @description end |
#entity ⇒ Object
Returns the value of attribute entity.
3 4 5 |
# File 'lib/rbbt/rest/entity/entity_card.rb', line 3 def entity @entity end |
#list_container ⇒ Object
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_name ⇒ Object
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 |
#meta ⇒ Object
Returns the value of attribute meta.
4 5 6 |
# File 'lib/rbbt/rest/entity/entity_card.rb', line 4 def @meta end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/rbbt/rest/entity/entity_card.rb', line 4 def name @name end |
#sections ⇒ Object
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 |