Class: Aboardly
- Inherits:
-
Object
- Object
- Aboardly
- Defined in:
- lib/aboardly/client.rb
Instance Method Summary collapse
- #customers ⇒ Object
- #events ⇒ Object
-
#initialize(username, password, base_url = BASE_URL) ⇒ Aboardly
constructor
A new instance of Aboardly.
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
#customers ⇒ Object
13 14 15 |
# File 'lib/aboardly/client.rb', line 13 def customers @customers end |
#events ⇒ Object
17 18 19 |
# File 'lib/aboardly/client.rb', line 17 def events @events end |