Class: BnetScraper::Starcraft2::Achievement

Inherits:
Object
  • Object
show all
Defined in:
lib/bnet_scraper/starcraft2/achievement.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Achievement

Returns a new instance of Achievement.



6
7
8
9
10
# File 'lib/bnet_scraper/starcraft2/achievement.rb', line 6

def initialize options = {}
  options.each_key do |key|
    self.send "#{key}=", options[key]
  end
end

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



4
5
6
# File 'lib/bnet_scraper/starcraft2/achievement.rb', line 4

def description
  @description
end

#earnedObject

Returns the value of attribute earned.



4
5
6
# File 'lib/bnet_scraper/starcraft2/achievement.rb', line 4

def earned
  @earned
end

#titleObject

Returns the value of attribute title.



4
5
6
# File 'lib/bnet_scraper/starcraft2/achievement.rb', line 4

def title
  @title
end