Module: GoPay

Defined in:
lib/gopay.rb,
lib/gopay/error.rb,
lib/gopay/client.rb,
lib/gopay/gateway.rb,
lib/gopay/payment.rb,
lib/gopay/version.rb

Defined Under Namespace

Classes: Client, Error, Gateway, Payment, Version

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.client_idObject

Returns the value of attribute client_id.



8
9
10
# File 'lib/gopay.rb', line 8

def client_id
  @client_id
end

.client_secretObject

Returns the value of attribute client_secret.



8
9
10
# File 'lib/gopay.rb', line 8

def client_secret
  @client_secret
end

.gateObject

Returns the value of attribute gate.



8
9
10
# File 'lib/gopay.rb', line 8

def gate
  @gate
end

.goidObject

Returns the value of attribute goid.



8
9
10
# File 'lib/gopay.rb', line 8

def goid
  @goid
end

.notification_hostObject

Returns the value of attribute notification_host.



8
9
10
# File 'lib/gopay.rb', line 8

def notification_host
  @notification_host
end

.return_hostObject

Returns the value of attribute return_host.



8
9
10
# File 'lib/gopay.rb', line 8

def return_host
  @return_host
end

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (GoPay)

    the object that the method was called on



11
12
13
# File 'lib/gopay.rb', line 11

def self.configure
  yield self
end

.request(method, path, body_parameters: {}) ⇒ Object



15
16
17
18
# File 'lib/gopay.rb', line 15

def self.request(method, path, body_parameters: {})
  client = GoPay::Client.new({gate: gate, client_id: client_id, goid: goid, client_secret: client_secret})
  client.request(method, path, body_parameters: body_parameters)
end