Module: ViglinkApi
- Defined in:
- lib/viglink_api.rb,
lib/viglink_api/deal.rb,
lib/viglink_api/client.rb,
lib/viglink_api/country.rb,
lib/viglink_api/product.rb,
lib/viglink_api/request.rb,
lib/viglink_api/version.rb,
lib/viglink_api/merchant.rb,
lib/viglink_api/purchases.rb
Overview
directory = File.expand_path(File.dirname(__FILE__))
Defined Under Namespace
Modules: Country, Deal, Merchant, Product, Request Classes: Client, Purchases
Constant Summary collapse
- VERSION =
"0.1.1"
Class Attribute Summary collapse
-
.api_cuid_url ⇒ Object
Returns the value of attribute api_cuid_url.
-
.api_full_response ⇒ Object
Returns the value of attribute api_full_response.
-
.api_key ⇒ Object
Returns the value of attribute api_key.
-
.api_secret ⇒ Object
Returns the value of attribute api_secret.
-
.api_url ⇒ Object
Returns the value of attribute api_url.
Class Method Summary collapse
-
.configure {|ViglinkApi| ... } ⇒ Object
Configure default credentials.
Class Attribute Details
.api_cuid_url ⇒ Object
Returns the value of attribute api_cuid_url.
12 13 14 |
# File 'lib/viglink_api.rb', line 12 def api_cuid_url @api_cuid_url end |
.api_full_response ⇒ Object
Returns the value of attribute api_full_response.
12 13 14 |
# File 'lib/viglink_api.rb', line 12 def api_full_response @api_full_response end |
.api_key ⇒ Object
Returns the value of attribute api_key.
12 13 14 |
# File 'lib/viglink_api.rb', line 12 def api_key @api_key end |
.api_secret ⇒ Object
Returns the value of attribute api_secret.
12 13 14 |
# File 'lib/viglink_api.rb', line 12 def api_secret @api_secret end |
.api_url ⇒ Object
Returns the value of attribute api_url.
12 13 14 |
# File 'lib/viglink_api.rb', line 12 def api_url @api_url end |
Class Method Details
.configure {|ViglinkApi| ... } ⇒ Object
Configure default credentials
18 19 20 21 22 |
# File 'lib/viglink_api.rb', line 18 def configure load_defaults yield self true end |