Module: Sqoot
- Defined in:
- lib/sqoot.rb,
lib/sqoot/click.rb,
lib/sqoot/offer.rb,
lib/sqoot/client.rb,
lib/sqoot/request.rb,
lib/sqoot/version.rb,
lib/sqoot/category.rb,
lib/sqoot/provider.rb,
lib/sqoot/commission.rb
Defined Under Namespace
Modules: Category, Click, Commission, Offer, Provider, Request Classes: Client
Constant Summary collapse
- VERSION =
"1.0.0"
Class Attribute Summary collapse
-
.affiliate_token ⇒ Object
Returns the value of attribute affiliate_token.
-
.api_url ⇒ Object
Returns the value of attribute api_url.
-
.authentication_token ⇒ Object
Returns the value of attribute authentication_token.
Class Method Summary collapse
-
.configure {|Sqoot| ... } ⇒ Object
Configure default credentials easily.
- .load_defaults ⇒ Object
Class Attribute Details
.affiliate_token ⇒ Object
Returns the value of attribute affiliate_token.
11 12 13 |
# File 'lib/sqoot.rb', line 11 def affiliate_token @affiliate_token end |
.api_url ⇒ Object
Returns the value of attribute api_url.
11 12 13 |
# File 'lib/sqoot.rb', line 11 def api_url @api_url end |
.authentication_token ⇒ Object
Returns the value of attribute authentication_token.
11 12 13 |
# File 'lib/sqoot.rb', line 11 def authentication_token @authentication_token end |
Class Method Details
.configure {|Sqoot| ... } ⇒ Object
Configure default credentials easily
16 17 18 19 20 |
# File 'lib/sqoot.rb', line 16 def configure load_defaults yield self true end |
.load_defaults ⇒ Object
22 23 24 |
# File 'lib/sqoot.rb', line 22 def load_defaults self.api_url ||= "http://api.sqoot.com/v1" end |