Class: BitlyOAuth::AccessToken
- Inherits:
-
Object
- Object
- BitlyOAuth::AccessToken
- Extended by:
- Forwardable
- Defined in:
- lib/bitly_oauth/access_token.rb
Instance Method Summary collapse
- #get(method, options) ⇒ Object
-
#initialize(access_token) ⇒ AccessToken
constructor
A new instance of AccessToken.
- #post(method, options) ⇒ Object
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, ) request(:get, method, ) end |
#post(method, options) ⇒ Object
14 15 16 |
# File 'lib/bitly_oauth/access_token.rb', line 14 def post(method, ) request(:post, method, ) end |