Class: ShortPixel::PostReducerResource
- Defined in:
- lib/shortpixel/resources/post_reducer.rb
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
Methods inherited from Resource
Constructor Details
This class inherits a constructor from ShortPixel::Resource
Instance Method Details
#call(**params) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/shortpixel/resources/post_reducer.rb', line 4 def call(**params) raise "PostReducer not built yet. Reach out if this is a feature you need." # response = post_request('post-reducer.php') # body = extract_body(response) # PostReducer.new(body) end |