Class: D3api::Follower
- Includes:
- Request
- Defined in:
- lib/d3api/follower.rb
Instance Attribute Summary
Attributes inherited from BaseModel
Instance Method Summary collapse
- #find(region, follower_type) ⇒ Object
-
#initialize(region, follower_type) ⇒ Follower
constructor
A new instance of Follower.
Methods included from Request
Methods included from 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 |