Class: Aboardly

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

Instance Method Summary collapse

Constructor Details

#initialize(username, password, base_url = BASE_URL) ⇒ Aboardly

Returns a new instance of Aboardly.


7
8
9
10
11
# File 'lib/aboardly/client.rb', line 7

def initialize(username, password, base_url = BASE_URL)
  auth = {username: username, password: password}
  @customers = Customers.new(auth, base_url)
  @events = Customers.new(auth, base_url)
end

Instance Method Details

#customersObject


13
14
15
# File 'lib/aboardly/client.rb', line 13

def customers
  @customers
end

#eventsObject


17
18
19
# File 'lib/aboardly/client.rb', line 17

def events
  @events
end