Class: TumblrWrapper::Resource

Inherits:
Object
  • Object
show all
Includes:
HTTP, Validators
Defined in:
lib/tumblr_wrapper/resources/resource.rb

Direct Known Subclasses

BlogResource

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from HTTP

#http_get, #http_post

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_tokenObject (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