Exception: MeetupApi::ClientException
- Inherits:
-
BaseException
- Object
- Exception
- BaseException
- MeetupApi::ClientException
- Defined in:
- lib/meetup_api.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
Attributes inherited from BaseException
Instance Method Summary collapse
-
#initialize(error_json) ⇒ ClientException
constructor
A new instance of ClientException.
- #to_s ⇒ Object
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
#description ⇒ Object (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_s ⇒ Object
184 185 186 |
# File 'lib/meetup_api.rb', line 184 def to_s "#{self.problem}: #{self.description}" end |