Class: MiniTransformer::KeyList

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#description_labelObject

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

#entriesObject

Returns the value of attribute entries.



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

def entries
  @entries
end

#key_labelObject

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

#nameObject

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