Class: Hiya::Base
- Inherits:
-
Object
- Object
- Hiya::Base
- Defined in:
- lib/hiya/base.rb
Direct Known Subclasses
Analytics::Popular, AttachBase, Link, Oauth, Url, Users::Links
Instance Attribute Summary collapse
-
#api_url ⇒ Object
readonly
Returns the value of attribute api_url.
-
#bearer_token ⇒ Object
readonly
Returns the value of attribute bearer_token.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(bearer_token = nil) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(bearer_token = nil) ⇒ Base
Returns a new instance of Base.
9 10 11 12 13 |
# File 'lib/hiya/base.rb', line 9 def initialize(bearer_token = nil) @bearer_token = bearer_token setup end |
Instance Attribute Details
#api_url ⇒ Object (readonly)
Returns the value of attribute api_url.
15 16 17 |
# File 'lib/hiya/base.rb', line 15 def api_url @api_url end |
#bearer_token ⇒ Object (readonly)
Returns the value of attribute bearer_token.
15 16 17 |
# File 'lib/hiya/base.rb', line 15 def bearer_token @bearer_token end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
15 16 17 |
# File 'lib/hiya/base.rb', line 15 def response @response end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
15 16 17 |
# File 'lib/hiya/base.rb', line 15 def source @source end |