Class: Uatu::Resource

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/uatu/resource.rb

Direct Known Subclasses

Character, Comic, Creator, Event, Serie, Story

Instance Method Summary collapse

Constructor Details

#initialize(original_hash) ⇒ Resource

Returns a new instance of Resource.



4
5
6
# File 'lib/uatu/resource.rb', line 4

def initialize(original_hash)
  super(improve_values(underscore_keys(original_hash)))
end