Class: Fuselage::AuthApi

Inherits:
Api
  • Object
show all
Includes:
HTTParty, Singleton
Defined in:
lib/fuselage/api.rb

Constant Summary

Constants inherited from Api

Fuselage::Api::MAX_RETRIES, Fuselage::Api::RETRYABLE_STATUS

Instance Attribute Summary

Attributes inherited from Api

#read_only, #token

Instance Method Summary collapse

Methods inherited from Api

api, api=, authenticated, authenticated=, #delete, #get, #post

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Fuselage::Api

Instance Method Details

#auth_parametersObject



33
34
35
# File 'lib/fuselage/api.rb', line 33

def auth_parameters
  {:access_token => Api.me.token }
end

#read_only?Boolean

Returns:

  • (Boolean)


29
30
31
# File 'lib/fuselage/api.rb', line 29

def read_only?
  false
end