Class: D3api::HeroFollower

Inherits:
Object
  • Object
show all
Defined in:
lib/d3api/hero/follower.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(follower_type, attributes) ⇒ HeroFollower

Returns a new instance of HeroFollower.



6
7
8
9
10
11
# File 'lib/d3api/hero/follower.rb', line 6

def initialize(follower_type, attributes)
  follower_type = follower_type
  attributes = attributes

  set_method(follower_type, attributes)
end

Instance Attribute Details

#follower_typeObject

Returns the value of attribute follower_type.



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

def follower_type
  @follower_type
end

#itemsObject

Returns the value of attribute items.



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

def items
  @items
end

#levelObject

Returns the value of attribute level.



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

def level
  @level
end

#skillsObject

Returns the value of attribute skills.



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

def skills
  @skills
end

#slugObject

Returns the value of attribute slug.



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

def slug
  @slug
end