Class: Steam::Id::CommunityId

Inherits:
Base
  • Object
show all
Defined in:
lib/steam/id/community_id.rb

Overview

Represents a 64 bit community ID

Instance Attribute Summary

Attributes inherited from Base

#struct

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#to_i, #to_s, #valid?

Constructor Details

#initialize(id) ⇒ CommunityId

Create a community id object



14
15
16
# File 'lib/steam/id/community_id.rb', line 14

def initialize(id)
  super(Struct.new(id))
end

Class Method Details

.parse(id) ⇒ Object

Parse a community id from an input

Parameters:

  • id (String, Integer)

    the input id



9
10
11
# File 'lib/steam/id/community_id.rb', line 9

def self.parse(id)
  new(id)
end