Class: MiniTransformer::Entry

Inherits:
Object
  • Object
show all
Defined in:
lib/mini_transformer/entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



3
4
5
# File 'lib/mini_transformer/entry.rb', line 3

def description
  @description
end

#key_nameObject

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