Class: EditableComponents::ItemHash

Inherits:
Item show all
Defined in:
app/models/editable_components/item_hash.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Item

#attr_id, #class_name, #editable, item_types, #opt_input, #to_s, #update_data

Class Method Details

.type_nameObject



12
13
14
# File 'app/models/editable_components/item_hash.rb', line 12

def self.type_name
  'hash'
end

Instance Method Details

#initObject



7
8
9
10
# File 'app/models/editable_components/item_hash.rb', line 7

def init
  self.data = {}
  self
end