class FplGsheet::Player

Public Class Methods

new(raw_hash, databank) click to toggle source

attr_reader :details

Calls superclass method
# File lib/fpl_gsheet/player.rb, line 7
def initialize(raw_hash, databank)
  super(raw_hash)
  @databank = databank
end

Public Instance Methods

full_name() click to toggle source
# File lib/fpl_gsheet/player.rb, line 12
def full_name
  self.first_name + ' ' + self.second_name
end
price() click to toggle source
# File lib/fpl_gsheet/player.rb, line 16
def price # FPL stores £5.4m as 54, let's change it back
  (self.now_cost.to_f/10).round(1)
end