class IntermatScrape::Wrestler
Attributes
class_standing[RW]
conference[RW]
name[RW]
rank[RW]
school[RW]
weight_class[RW]
Public Class Methods
new(wrestler_hash)
click to toggle source
# File lib/intermat_scrape/wrestler.rb, line 4 def initialize(wrestler_hash) wrestler_hash.each { |k, v| self.send("#{k}=", v) } end
Public Instance Methods
to_s()
click to toggle source
TODO move to Cli.class
# File lib/intermat_scrape/wrestler.rb, line 9 def to_s puts '' puts "----------- #{name} ##{rank} -----------".on_blue puts '' puts "School:".colorize(:light_cyan).ljust(20).concat(@school) puts "Class:".colorize(:light_cyan).ljust(20).concat(@class_standing) puts "Conference:".colorize(:light_cyan).ljust(20).concat(@conference) end