Class: D3api::Follower

Inherits:
BaseModel show all
Includes:
Request
Defined in:
lib/d3api/follower.rb

Instance Attribute Summary

Attributes inherited from BaseModel

#value

Instance Method Summary collapse

Methods included from Request

#get

Methods included from Connection

#connection

Constructor Details

#initialize(region, follower_type) ⇒ Follower

Returns a new instance of Follower.



5
6
7
8
9
# File 'lib/d3api/follower.rb', line 5

def initialize(region, follower_type)
  json_response = find(region, follower_type)

  super json_response
end

Instance Method Details

#find(region, follower_type) ⇒ Object



11
12
13
# File 'lib/d3api/follower.rb', line 11

def find(region, follower_type)
  get(:us, "data/follower/#{follower_type}")
end