Class: D3api::BaseModel

Inherits:
Object
  • Object
show all
Includes:
Request
Defined in:
lib/d3api/base_model.rb

Direct Known Subclasses

Artisan, Career, EquippedItem, Follower, Hero, HeroStats, Item

Instance Method Summary collapse

Methods included from Request

#get

Methods included from Connection

#connection

Constructor Details

#initialize(values) ⇒ BaseModel

Returns a new instance of BaseModel.



5
6
7
# File 'lib/d3api/base_model.rb', line 5

def initialize(values)
  JSON.parse(values)
end