Class: LOL::Api::Response

Inherits:
Object
  • Object
show all
Defined in:
lib/lol/api/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status, body) ⇒ Response

Returns a new instance of Response.



11
12
13
# File 'lib/lol/api/response.rb', line 11

def initialize(status, body)
  @status, @body = status, json(body)
end

Instance Attribute Details

#bodyObject

Returns the value of attribute body.



9
10
11
# File 'lib/lol/api/response.rb', line 9

def body
  @body
end

#statusObject

Returns the value of attribute status.



9
10
11
# File 'lib/lol/api/response.rb', line 9

def status
  @status
end