Class: Octopi::AnonymousApi

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

Overview

Used for accessing the Github API anonymously

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



20
21
22
# File 'lib/octopi/api.rb', line 20

def auth_parameters
  { }
end

#read_only?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/octopi/api.rb', line 16

def read_only?
  true
end