Module: Bitly::Config

Included in:
Bitly
Defined in:
lib/bitly/config.rb

Overview

configuration module.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#access_tokenObject

Returns the value of attribute access_token.



7
8
9
# File 'lib/bitly/config.rb', line 7

def access_token
  @access_token
end

#api_versionObject

Returns the value of attribute api_version.



6
7
8
# File 'lib/bitly/config.rb', line 6

def api_version
  @api_version
end

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Bitly::Config)

    the object that the method was called on



9
10
11
12
# File 'lib/bitly/config.rb', line 9

def configure
  yield self
  self
end