Class: D3api::Follower

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

Instance Attribute Summary collapse

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
10
11
# File 'lib/d3api/follower.rb', line 5

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

  values = super json_response

  set_method(values)
end

Instance Attribute Details

#active_skillsObject

Returns the value of attribute active_skills.



3
4
5
# File 'lib/d3api/follower.rb', line 3

def active_skills
  @active_skills
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/d3api/follower.rb', line 3

def name
  @name
end

#portraitObject

Returns the value of attribute portrait.



3
4
5
# File 'lib/d3api/follower.rb', line 3

def portrait
  @portrait
end

#slugObject

Returns the value of attribute slug.



3
4
5
# File 'lib/d3api/follower.rb', line 3

def slug
  @slug
end