Module: AddThis
- Defined in:
- lib/add_this/requests.rb,
lib/add_this/client.rb,
lib/add_this/version.rb,
lib/add_this/configuration.rb
Overview
Configuration Class
this allows to you to setup all your configuration params through an initializer such as:
config/initializers/add_this.rb
Defined Under Namespace
Modules: Requests Classes: Client, Configuration
Constant Summary collapse
- VERSION =
"0.0.3"
Class Attribute Summary collapse
-
.client ⇒ Object
attrs for storing the client object.
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
-
.configure {|configuration| ... } ⇒ Boolean
Allows you to build a configure block.
-
.get ⇒ Object
defining the client object so you can make requests on the AddThis class.
Class Attribute Details
.client ⇒ Object
attrs for storing the client object
68 69 70 |
# File 'lib/add_this/client.rb', line 68 def client @client end |
.configuration ⇒ Object
Returns the value of attribute configuration.
31 32 33 |
# File 'lib/add_this/configuration.rb', line 31 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Boolean
Allows you to build a configure block
39 40 41 42 43 |
# File 'lib/add_this/configuration.rb', line 39 def self.configure self.configuration ||= Configuration.new yield configuration true end |