Module: Workarea::Yotpo
- Defined in:
- lib/workarea/yotpo.rb,
app/services/yotpo/order.rb,
lib/workarea/yotpo/engine.rb,
lib/workarea/yotpo/gateway.rb,
lib/workarea/yotpo/version.rb,
lib/workarea/yotpo/response.rb,
lib/workarea/yotpo/bogus_gateway.rb,
lib/workarea/yotpo/authentication.rb,
app/workers/workarea/yotpo/save_order.rb
Defined Under Namespace
Modules: Authentication
Classes: BogusGateway, Engine, Gateway, Order, Response, SaveOrder
Constant Summary
collapse
- VERSION =
"1.0.0"
Class Method Summary
collapse
Class Method Details
.app_key ⇒ Object
25
26
27
|
# File 'lib/workarea/yotpo.rb', line 25
def self.app_key
config.app_key
end
|
.config ⇒ Object
21
22
23
|
# File 'lib/workarea/yotpo.rb', line 21
def self.config
Workarea.config.yotpo
end
|
.credentials ⇒ Object
17
18
19
|
# File 'lib/workarea/yotpo.rb', line 17
def self.credentials
(Rails.application.secrets.yotpo || {}).deep_symbolize_keys
end
|
.secret_key ⇒ Object
29
30
31
|
# File 'lib/workarea/yotpo.rb', line 29
def self.secret_key
credentials[:secret_key]
end
|