Exception: TidaSinaWeibo::Exception

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/tida_sina_weibo/exceptions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ Exception

Returns a new instance of Exception.



8
9
10
# File 'lib/tida_sina_weibo/exceptions.rb', line 8

def initialize message = nil
  @message = message
end

Instance Attribute Details

#messageObject

Returns the value of attribute message.



6
7
8
# File 'lib/tida_sina_weibo/exceptions.rb', line 6

def message
  @message
end

Instance Method Details

#inspectObject



12
13
14
# File 'lib/tida_sina_weibo/exceptions.rb', line 12

def inspect
  self.message
end

#to_sObject



16
17
18
# File 'lib/tida_sina_weibo/exceptions.rb', line 16

def to_s
  inspect
end