Module: Analytics::Configurable
Instance Attribute Summary collapse
-
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
-
#consumer_secret ⇒ Object
Returns the value of attribute consumer_secret.
-
#default_access_token ⇒ Object
Returns the value of attribute default_access_token.
Instance Method Summary collapse
Instance Attribute Details
#consumer_key ⇒ Object
Returns the value of attribute consumer_key.
7 8 9 |
# File 'lib/analytics/configurable.rb', line 7 def consumer_key @consumer_key end |
#consumer_secret ⇒ Object
Returns the value of attribute consumer_secret.
7 8 9 |
# File 'lib/analytics/configurable.rb', line 7 def consumer_secret @consumer_secret end |
#default_access_token ⇒ Object
Returns the value of attribute default_access_token.
7 8 9 |
# File 'lib/analytics/configurable.rb', line 7 def default_access_token @default_access_token end |
Instance Method Details
#configure {|_self| ... } ⇒ Object
9 10 11 12 |
# File 'lib/analytics/configurable.rb', line 9 def configure yield self self end |
#options ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/analytics/configurable.rb', line 14 def { :consumer_key => consumer_key, :consumer_secret => consumer_secret, :default_access_token => default_access_token } end |