Class: BitlyOAuth::AccessToken

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/bitly_oauth/access_token.rb

Instance Method Summary collapse

Constructor Details

#initialize(access_token) ⇒ AccessToken

Returns a new instance of AccessToken.



6
7
8
# File 'lib/bitly_oauth/access_token.rb', line 6

def initialize(access_token)
  @access_token = access_token
end

Instance Method Details

#get(method, options) ⇒ Object



10
11
12
# File 'lib/bitly_oauth/access_token.rb', line 10

def get(method, options)
  request(:get, method, options)
end

#post(method, options) ⇒ Object



14
15
16
# File 'lib/bitly_oauth/access_token.rb', line 14

def post(method, options)
  request(:post, method, options)
end