Module: Ticketlocker
- Defined in:
- lib/ticketlocker.rb,
lib/ticketlocker/client.rb,
lib/ticketlocker/ticket.rb,
lib/ticketlocker/version.rb,
lib/ticketlocker/ticket_collection.rb
Defined Under Namespace
Classes: BadTokenError, Client, Error, Ticket, TicketCollection
Constant Summary collapse
- VERSION =
"0.0.1"
Class Attribute Summary collapse
-
.api_key ⇒ Object
Returns the value of attribute api_key.
-
.client ⇒ Object
Returns the value of attribute client.
-
.connection ⇒ Object
Returns the value of attribute connection.
Class Method Summary collapse
Class Attribute Details
.api_key ⇒ Object
Returns the value of attribute api_key.
11 12 13 |
# File 'lib/ticketlocker.rb', line 11 def api_key @api_key end |
.client ⇒ Object
Returns the value of attribute client.
11 12 13 |
# File 'lib/ticketlocker.rb', line 11 def client @client end |
.connection ⇒ Object
Returns the value of attribute connection.
11 12 13 |
# File 'lib/ticketlocker.rb', line 11 def connection @connection end |
Class Method Details
.setup ⇒ Object
14 15 16 17 18 |
# File 'lib/ticketlocker.rb', line 14 def self.setup self.client = Ticketlocker::Client.new(token: api_key || "58990f3c290da63b95513fee9b0b526f", base_url: "http://localhost:3000") self.connection = client.conn end |