Module: Zaim::Configuration

Included in:
Zaim, Client
Defined in:
lib/zaim/configuration.rb

Constant Summary collapse

OptionKeys =
[ :consumer_key, :consumer_secret, :oauth_token, :oauth_token_secret ]

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#consumer_keyObject

Returns the value of attribute consumer_key.



7
8
9
# File 'lib/zaim/configuration.rb', line 7

def consumer_key
  @consumer_key
end

#consumer_secret=(value) ⇒ Object (writeonly)

Sets the attribute consumer_secret

Parameters:

  • value

    the value to set the attribute consumer_secret to.



6
7
8
# File 'lib/zaim/configuration.rb', line 6

def consumer_secret=(value)
  @consumer_secret = value
end

#oauth_token=(value) ⇒ Object (writeonly)

Sets the attribute oauth_token

Parameters:

  • value

    the value to set the attribute oauth_token to.



6
7
8
# File 'lib/zaim/configuration.rb', line 6

def oauth_token=(value)
  @oauth_token = value
end

#oauth_token_secret=(value) ⇒ Object (writeonly)

Sets the attribute oauth_token_secret

Parameters:

  • value

    the value to set the attribute oauth_token_secret to.



6
7
8
# File 'lib/zaim/configuration.rb', line 6

def oauth_token_secret=(value)
  @oauth_token_secret = value
end

Instance Method Details

#configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:



9
10
11
12
# File 'lib/zaim/configuration.rb', line 9

def configure
  yield self
  self
end