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