Class: Rebay::Api
- Inherits:
-
Object
- Object
- Rebay::Api
- Defined in:
- lib/rebay/api.rb
Constant Summary collapse
- EBAY_US =
default site is EBAY_US, for other available sites see eBay documentation: developer.ebay.com/DevZone/merchandising/docs/Concepts/SiteIDToGlobalID.html
0
Class Attribute Summary collapse
-
.app_id ⇒ Object
Returns the value of attribute app_id.
-
.default_site_id ⇒ Object
Returns the value of attribute default_site_id.
-
.sandbox ⇒ Object
Returns the value of attribute sandbox.
Class Method Summary collapse
- .base_url ⇒ Object
- .base_url_prefix ⇒ Object
- .base_url_suffix ⇒ Object
- .configure {|_self| ... } ⇒ Object
Class Attribute Details
.app_id ⇒ Object
Returns the value of attribute app_id.
12 13 14 |
# File 'lib/rebay/api.rb', line 12 def app_id @app_id end |
.default_site_id ⇒ Object
Returns the value of attribute default_site_id.
12 13 14 |
# File 'lib/rebay/api.rb', line 12 def default_site_id @default_site_id end |
.sandbox ⇒ Object
Returns the value of attribute sandbox.
12 13 14 |
# File 'lib/rebay/api.rb', line 12 def sandbox @sandbox end |
Class Method Details
.base_url ⇒ Object
14 15 16 17 18 |
# File 'lib/rebay/api.rb', line 14 def base_url [base_url_prefix, sandbox ? "sandbox" : nil, base_url_suffix].compact.join('.') end |
.base_url_prefix ⇒ Object
20 21 22 |
# File 'lib/rebay/api.rb', line 20 def base_url_prefix "http://svcs" end |
.base_url_suffix ⇒ Object
24 25 26 |
# File 'lib/rebay/api.rb', line 24 def base_url_suffix "ebay.com" end |
.configure {|_self| ... } ⇒ Object
36 37 38 |
# File 'lib/rebay/api.rb', line 36 def configure yield self if block_given? end |