Sha256: 9157ebfc87931517e859f8a6c4e3844ccc60c04eac6c66fea160ace5e8d127e7
Contents?: true
Size: 524 Bytes
Versions: 5
Compression:
Stored size: 524 Bytes
Contents
module Hockey # Team on HockeyApp class Team attr_reader :id attr_reader :name attr_reader :original_hash attr :net def self.create_from(hashobj, networking) self.new hashobj, networking end def initialize(hashobj, networking) @id = hashobj['id'] @name = hashobj['name'] @original_hash = hashobj @net = networking end def inspect "#<#{self.class}:#{'0x%08x' % self.hash} #{@id}, #{@name}>" end alias_method :to_s, :inspect end end
Version data entries
5 entries across 5 versions & 1 rubygems