Class: Redd::Clients::Userless
- Defined in:
- lib/redd/clients/userless.rb
Overview
Note:
Of course, that means many editing methods throw an error.
The client that doesn’t need a user to function.
Constant Summary
Constants included from Base::Utilities
Instance Attribute Summary collapse
-
#client_id ⇒ Object
readonly
Returns the value of attribute client_id.
Attributes inherited from Base
#access, #api_endpoint, #auth_endpoint, #rate_limit, #user_agent
Instance Method Summary collapse
-
#authorize! ⇒ Access
Authorize using the given data.
-
#initialize(client_id, secret, **options) ⇒ Userless
constructor
A new instance of Userless.
Methods inherited from Base
#delete, #get, #patch, #post, #put, #refresh_access!, #revoke_access!, #with
Methods included from Base::Wikiread
Methods included from Base::Stream
Methods included from Base::Submit
Methods included from Base::Read
#from_fullname, #from_url, #get_comments, #get_controversial, #get_hot, #get_new, #get_top, #multi_from_path, #my_multis, #search, #subreddit_from_name, #user_from_name
Methods included from Base::Privatemessages
#my_messages, #read_all_messages
Methods included from Base::None
#captcha_url, #needs_captcha?, #new_captcha
Methods included from Base::Identity
Methods included from Base::Account
Methods included from Base::Utilities
#append_to_listing, #flat_comments, #object_from_body, #property, #request_object
Constructor Details
#initialize(client_id, secret, **options) ⇒ Userless
Returns a new instance of Userless.
14 15 16 17 18 |
# File 'lib/redd/clients/userless.rb', line 14 def initialize(client_id, secret, **) @client_id = client_id @secret = secret super(**) end |
Instance Attribute Details
#client_id ⇒ Object (readonly)
Returns the value of attribute client_id.
9 10 11 |
# File 'lib/redd/clients/userless.rb', line 9 def client_id @client_id end |