Module: GiantBomb::Api

Includes:
HTTParty
Included in:
Search
Defined in:
lib/giantbomb/api.rb

Class Method Summary collapse

Class Method Details

.configObject



7
8
9
# File 'lib/giantbomb/api.rb', line 7

def self.config
  @@config
end

.key(api_key) ⇒ Object



11
12
13
14
15
16
# File 'lib/giantbomb/api.rb', line 11

def self.key(api_key)
  @@config = {
    api_key: api_key,
    format: 'json'
  }
end