Class: TumblrWrapper::Resource
- Inherits:
-
Object
- Object
- TumblrWrapper::Resource
- Includes:
- HTTP, Validators
- Defined in:
- lib/tumblr_wrapper/resources/resource.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#access_token ⇒ Object
readonly
Returns the value of attribute access_token.
Instance Method Summary collapse
-
#initialize(access_token) ⇒ Resource
constructor
A new instance of Resource.
Methods included from HTTP
Methods included from Validators
#validate_not_present, #validate_oauth, #validate_present
Constructor Details
#initialize(access_token) ⇒ Resource
Returns a new instance of Resource.
7 8 9 |
# File 'lib/tumblr_wrapper/resources/resource.rb', line 7 def initialize(access_token) @access_token = access_token end |
Instance Attribute Details
#access_token ⇒ Object (readonly)
Returns the value of attribute access_token.
5 6 7 |
# File 'lib/tumblr_wrapper/resources/resource.rb', line 5 def access_token @access_token end |