Class: Locu::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/locu_wrapper/client.rb

Constant Summary collapse

API_VERSION =
'v1_0'
DEFAULTS =
{
  :host => 'http://api.locu.com'
}

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key) ⇒ Client

Returns a new instance of Client.



14
15
16
17
18
19
# File 'lib/locu_wrapper/client.rb', line 14

def initialize(api_key)
  @api_key = api_key
  @config  = DEFAULTS
  @host    = @config[:host]
  setup_attributes
end

Instance Attribute Details

adding only a menu for now, should add venues later



12
13
14
# File 'lib/locu_wrapper/client.rb', line 12

def menu
  @menu
end

#venueObject (readonly)

adding only a menu for now, should add venues later



12
13
14
# File 'lib/locu_wrapper/client.rb', line 12

def venue
  @venue
end