class ApiRecipes::Response
Attributes
original_response[R]
Public Class Methods
new(response, attributes = {})
click to toggle source
# File lib/api_recipes/response.rb, line 6 def initialize(response, attributes = {}) @original_response = response @attributes = attributes end
Public Instance Methods
data()
click to toggle source
# File lib/api_recipes/response.rb, line 11 def data return @data unless @data.nil? # TODO: rescue nil? @data = @original_response.parse end
method_missing(symbol, *args, &block)
click to toggle source
Forward method calls to 'original' Response
class
# File lib/api_recipes/response.rb, line 19 def method_missing(symbol, *args, &block) @original_response.send symbol,* args, &block end