Class: PuzzlyApiPlugin::JSONable

Inherits:
Hash
  • Object
show all
Defined in:
lib/puzzly_api_plugin/jsonable.rb

Direct Known Subclasses

Collection, Identity, Metadata, Renderable

Instance Method Summary collapse

Instance Method Details

#copy_to_hash(hash) ⇒ Object



5
6
7
8
9
# File 'lib/puzzly_api_plugin/jsonable.rb', line 5

def copy_to_hash(hash)
  each do |key, value|
    hash.store(key, value)
  end
end

#to_sObject



11
12
13
# File 'lib/puzzly_api_plugin/jsonable.rb', line 11

def to_s
  to_json
end