Exception: Flickr::RequestError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/simple-flickr.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, message) ⇒ RequestError



35
36
37
# File 'lib/simple-flickr.rb', line 35

def initialize( status, message )
  @status, @message = status.to_i, message
end

Instance Attribute Details

#messageObject

Returns the value of attribute message.



34
35
36
# File 'lib/simple-flickr.rb', line 34

def message
  @message
end

#statusObject

Returns the value of attribute status.



34
35
36
# File 'lib/simple-flickr.rb', line 34

def status
  @status
end

Instance Method Details

#to_sObject



39
40
41
# File 'lib/simple-flickr.rb', line 39

def to_s
  "#{message} (#{status})"
end