Class: AdamSignals::Response
- Inherits:
-
Object
- Object
- AdamSignals::Response
- Defined in:
- lib/adam_signals/response.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.from_json(json) ⇒ Object
13 14 15 |
# File 'lib/adam_signals/response.rb', line 13 def self.from_json(json) new JSON.parse(json) end |
Instance Method Details
#to_json ⇒ Object
17 18 19 |
# File 'lib/adam_signals/response.rb', line 17 def to_json JSON.generate attributes end |
#to_s ⇒ Object
21 22 23 |
# File 'lib/adam_signals/response.rb', line 21 def to_s "#<#{self.class.name} #{attributes}>" end |