class Scraper
Public Class Methods
get_move_by_name(name)
click to toggle source
# File lib/scraper.rb, line 21 def self.get_move_by_name(name) @@moves.each{|move| if move["name"] == name return HTTParty.get(move["url"]) end } end
get_pokemon_by_name(name)
click to toggle source
# File lib/scraper.rb, line 9 def self.get_pokemon_by_name(name) @@pokemons.each{|pokemon| if pokemon["name"] == name return HTTParty.get(pokemon["url"]) end } end
moves()
click to toggle source
# File lib/scraper.rb, line 29 def self.moves @@moves.collect{|move| move["name"]} end
pokemons()
click to toggle source
# File lib/scraper.rb, line 17 def self.pokemons @@pokemons.collect{|pokemon| pokemon["name"]} end