Class: Mastodon::Client
- Inherits:
-
Object
- Object
- Mastodon::Client
- Defined in:
- lib/mastodon/client.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#base_url ⇒ Object
readonly
Returns the value of attribute base_url.
-
#bearer_token ⇒ Object
readonly
Returns the value of attribute bearer_token.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
-
#user_agent ⇒ String
User agent of the client.
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
10 11 12 13 |
# File 'lib/mastodon/client.rb', line 10 def initialize( = {}) @base_url = [:base_url] @bearer_token = [:bearer_token] end |
Instance Attribute Details
#base_url ⇒ Object (readonly)
Returns the value of attribute base_url.
5 6 7 |
# File 'lib/mastodon/client.rb', line 5 def base_url @base_url end |
#bearer_token ⇒ Object (readonly)
Returns the value of attribute bearer_token.
5 6 7 |
# File 'lib/mastodon/client.rb', line 5 def bearer_token @bearer_token end |