Class: Seaweed::HTTP
- Inherits:
-
Object
- Object
- Seaweed::HTTP
- Extended by:
- Forwardable
- Defined in:
- lib/seaweed/http.rb
Class Method Summary collapse
Class Method Details
.configure(http: RestClient, json: JSON) ⇒ Object
9 10 11 12 |
# File 'lib/seaweed/http.rb', line 9 def configure(http: RestClient, json: JSON) @http = http @json = json end |
.parse(json) ⇒ Object
14 15 16 |
# File 'lib/seaweed/http.rb', line 14 def parse(json) @json.parse json, symbolize_names: true end |