Class: Hiya::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/hiya/base.rb

Direct Known Subclasses

Analytics::Popular, AttachBase, Link, Oauth, Url, Users::Links

Instance Attribute Summary collapse

Instance Method Summary collapse

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_urlObject (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_tokenObject (readonly)

Returns the value of attribute bearer_token.



15
16
17
# File 'lib/hiya/base.rb', line 15

def bearer_token
  @bearer_token
end

#responseObject (readonly)

Returns the value of attribute response.



15
16
17
# File 'lib/hiya/base.rb', line 15

def response
  @response
end

#sourceObject (readonly)

Returns the value of attribute source.



15
16
17
# File 'lib/hiya/base.rb', line 15

def source
  @source
end