class Hockey::Team

Team on HockeyApp

Attributes

id[R]
name[R]
net[R]
original_hash[R]

Public Class Methods

create_from(hashobj, networking) click to toggle source
# File lib/hockeyhelper/team.rb, line 12
def self.create_from(hashobj, networking)
  self.new hashobj, networking
end
new(hashobj, networking) click to toggle source
# File lib/hockeyhelper/team.rb, line 16
def initialize(hashobj, networking)
  @id = hashobj['id']
  @name = hashobj['name']
  @original_hash = hashobj
  @net = networking
end

Public Instance Methods

inspect() click to toggle source
# File lib/hockeyhelper/team.rb, line 23
def inspect
  "#<#{self.class}:#{'0x%08x' % self.hash} #{@id}, #{@name}>"
end
Also aliased as: to_s
to_s()
Alias for: inspect