Class: Yify::Response

Inherits:
Object
  • Object
show all
Includes:
Support::Utils
Defined in:
lib/yify/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Support::Utils

#symbolize_keys

Constructor Details

#initialize(res, model) ⇒ Response

Returns a new instance of Response.



7
8
9
10
11
12
13
# File 'lib/yify/response.rb', line 7

def initialize(res, model)
  @model = model
  @response = res
  @result = {}

  normalized_response
end

Instance Attribute Details

#modelObject (readonly)

Returns the value of attribute model.



5
6
7
# File 'lib/yify/response.rb', line 5

def model
  @model
end

#responseObject (readonly)

Returns the value of attribute response.



5
6
7
# File 'lib/yify/response.rb', line 5

def response
  @response
end

#resultObject (readonly)

Returns the value of attribute result.



5
6
7
# File 'lib/yify/response.rb', line 5

def result
  @result
end