Class: GiantBombApi::Request

Inherits:
Object
  • Object
show all
Defined in:
lib/giant_bomb_api/request.rb

Direct Known Subclasses

Collection, Detail, Search

Defined Under Namespace

Classes: Collection, Detail, Search

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(end_point, params) ⇒ Request

Returns a new instance of Request.



5
6
7
8
# File 'lib/giant_bomb_api/request.rb', line 5

def initialize(end_point, params)
  @params = params
  @end_point = end_point
end

Instance Attribute Details

#end_pointObject

Returns the value of attribute end_point.



3
4
5
# File 'lib/giant_bomb_api/request.rb', line 3

def end_point
  @end_point
end

#paramsObject

Returns the value of attribute params.



3
4
5
# File 'lib/giant_bomb_api/request.rb', line 3

def params
  @params
end