Class: UndergroundWeather::Client

Inherits:
Object
  • Object
show all
Includes:
Features
Defined in:
lib/undergroundweather/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key) ⇒ Client

Returns a new instance of Client.



5
6
7
# File 'lib/undergroundweather/client.rb', line 5

def initialize(api_key)
  @api_key = api_key
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



3
4
5
# File 'lib/undergroundweather/client.rb', line 3

def api_key
  @api_key
end