Exception: MeetupApi::BaseException

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

Overview

Base class for unexpected errors returned by the Client

Direct Known Subclasses

ClientException

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(e) ⇒ BaseException

Returns a new instance of BaseException.



167
168
169
# File 'lib/meetup_api.rb', line 167

def initialize(e)
  @problem = e
end

Instance Attribute Details

#problemObject (readonly)

Returns the value of attribute problem.



165
166
167
# File 'lib/meetup_api.rb', line 165

def problem
  @problem
end

Instance Method Details

#to_sObject



171
172
173
# File 'lib/meetup_api.rb', line 171

def to_s
  "#{self.problem}"
end