Method: Tickethub::App#initialize
- Defined in:
- lib/tickethub/app.rb
#initialize(endpoint, attributes = nil) ⇒ App
Returns a new instance of App.
23 24 25 26 27 28 29 30 31 32 |
# File 'lib/tickethub/app.rb', line 23 def initialize(endpoint, attributes = nil) attributes ||= endpoint.get if attributes['token'] endpoint = Tickethub.endpoint(auth_type: :bearer, password: attributes['token']['access_token'])[self.class.path] end super(endpoint, attributes) end |