Class: Evernotable::Client::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/evernotable/client/base.rb

Direct Known Subclasses

Note, User

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params = {}) ⇒ Base

Returns a new instance of Base.



10
11
12
13
14
# File 'lib/evernotable/client/base.rb', line 10

def initialize(params={})
  @config = params[:config] || nil
  @current_user = params[:current_user] || nil
  @client_token = params[:client_token] || nil
end

Instance Attribute Details

#client_tokenObject

Returns the value of attribute client_token.



8
9
10
# File 'lib/evernotable/client/base.rb', line 8

def client_token
  @client_token
end

#configObject (readonly)

Returns the value of attribute config.



6
7
8
# File 'lib/evernotable/client/base.rb', line 6

def config
  @config
end

#current_userObject

Returns the value of attribute current_user.



7
8
9
# File 'lib/evernotable/client/base.rb', line 7

def current_user
  @current_user
end