Exception: Steam::ProfileNotFound

Inherits:
Exception
  • Object
show all
Defined in:
lib/steam/profile.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id) ⇒ ProfileNotFound

Returns a new instance of ProfileNotFound.



7
8
9
10
# File 'lib/steam/profile.rb', line 7

def initialize id
  @id = id
  @message = "Steam profile for '#{@id}' not found"
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



5
6
7
# File 'lib/steam/profile.rb', line 5

def id
  @id
end

Instance Method Details

#to_sObject



12
13
14
# File 'lib/steam/profile.rb', line 12

def to_s
  @message
end