Class: Giphy::Response
- Inherits:
-
Object
- Object
- Giphy::Response
- Defined in:
- lib/giphy/response.rb
Class Method Summary collapse
Instance Method Summary collapse
- #data ⇒ Object
-
#initialize(response) ⇒ Response
constructor
A new instance of Response.
Constructor Details
#initialize(response) ⇒ Response
Returns a new instance of Response.
7 8 9 |
# File 'lib/giphy/response.rb', line 7 def initialize(response) @response = response end |
Class Method Details
.build(response) ⇒ Object
3 4 5 |
# File 'lib/giphy/response.rb', line 3 def self.build(response) new(response).data end |