Class: Octopi::AuthApi

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

Constant Summary

Constants inherited from Api

Octopi::Api::CONTENT_TYPE, Octopi::Api::MAX_RETRIES, Octopi::Api::RETRYABLE_STATUS

Instance Attribute Summary

Attributes inherited from Api

#format, #login, #read_only, #token, #trace_level

Instance Method Summary collapse

Methods inherited from Api

api, api=, authenticated, authenticated=, #find, #find_all, #get, #get_raw, #post, #save, #user

Methods included from Self

#emails, #follow!, #keys, #unfollow!

Dynamic Method Handling

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

Instance Method Details

#auth_parametersObject



34
35
36
# File 'lib/octopi/api.rb', line 34

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

#read_only?Boolean

Returns:

  • (Boolean)


30
31
32
# File 'lib/octopi/api.rb', line 30

def read_only?
  false
end