Class: Moneta::Front::Service

Inherits:
Object
  • Object
show all
Includes:
ServiceMethods
Defined in:
lib/moneta/front/service.rb

Constant Summary collapse

DEMO =
Moneta::Constants::Settings::DEMO
PRODUCTION =
Moneta::Constants::Settings::PRODUCTION
PATH =
Moneta::Constants::Settings::CERTIFICATE_PATH

Instance Method Summary collapse

Methods included from ServiceMethods

#get_receipt_pdf

Constructor Details

#initialize(certificate, key, params = {}) ⇒ Service

Returns a new instance of Service.



12
13
14
15
16
# File 'lib/moneta/front/service.rb', line 12

def initialize(certificate, key, params = {})
  @certificate = certificate
  @key = key
  @connection = connection(Moneta::Api::Options.new(params))
end

Instance Method Details

#request(url) ⇒ Object



18
19
20
# File 'lib/moneta/front/service.rb', line 18

def request(url)
  @connection.get(url)
end