Exception: MeetupApi::ClientException

Inherits:
BaseException show all
Defined in:
lib/meetup_api.rb

Instance Attribute Summary collapse

Attributes inherited from BaseException

#problem

Instance Method Summary collapse

Constructor Details

#initialize(error_json) ⇒ ClientException



179
180
181
182
# File 'lib/meetup_api.rb', line 179

def initialize(error_json)
  @description = error_json['details']
  @problem = error_json['problem']
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



177
178
179
# File 'lib/meetup_api.rb', line 177

def description
  @description
end

Instance Method Details

#to_sObject



184
185
186
# File 'lib/meetup_api.rb', line 184

def to_s
  "#{self.problem}: #{self.description}"
end