Class: Phearb::Response
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- Phearb::Response
- Defined in:
- lib/phearb/response.rb
Class Method Summary collapse
Class Method Details
.from_json(json) ⇒ Object
6 7 8 9 |
# File 'lib/phearb/response.rb', line 6 def self.from_json(json) return nil if json.blank? new(JSON.parse(json)) end |