Class: Gameopedia::Response

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

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(code:, body:) ⇒ Response

Returns a new instance of Response.



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

def initialize(code:, body:)
  @code = code
  @body = body
end

Instance Attribute Details

#bodyObject (readonly)

Returns the value of attribute body.



10
11
12
# File 'lib/gameopedia/response.rb', line 10

def body
  @body
end

#codeObject (readonly)

Returns the value of attribute code.



10
11
12
# File 'lib/gameopedia/response.rb', line 10

def code
  @code
end