Class: MiniTransformer::KeyList
- Inherits:
-
Object
- Object
- MiniTransformer::KeyList
- Defined in:
- lib/mini_transformer/key_list.rb
Instance Attribute Summary collapse
-
#description_label ⇒ Object
Returns the value of attribute description_label.
-
#entries ⇒ Object
Returns the value of attribute entries.
-
#key_label ⇒ Object
Returns the value of attribute key_label.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
Instance Attribute Details
#description_label ⇒ Object
Returns the value of attribute description_label.
3 4 5 |
# File 'lib/mini_transformer/key_list.rb', line 3 def description_label @description_label end |
#entries ⇒ Object
Returns the value of attribute entries.
3 4 5 |
# File 'lib/mini_transformer/key_list.rb', line 3 def entries @entries end |
#key_label ⇒ Object
Returns the value of attribute key_label.
3 4 5 |
# File 'lib/mini_transformer/key_list.rb', line 3 def key_label @key_label end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/mini_transformer/key_list.rb', line 3 def name @name end |
Instance Method Details
#to_json(*a) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/mini_transformer/key_list.rb', line 5 def to_json(*a) { 'name' => self.name, 'key-label' => self.key_label, 'description-label' => self.description_label#, }.to_json(*a) end |