Module: Mercanet
- Defined in:
- lib/mercanet.rb,
lib/mercanet/payment.rb,
lib/mercanet/version.rb,
lib/mercanet/response.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.1.0"
Class Attribute Summary collapse
-
.automatic_response_url ⇒ Object
Returns the value of attribute automatic_response_url.
-
.environment ⇒ Object
Returns the value of attribute environment.
-
.interface_version ⇒ Object
Returns the value of attribute interface_version.
-
.key_version ⇒ Object
Returns the value of attribute key_version.
-
.merchant_id ⇒ Object
Returns the value of attribute merchant_id.
-
.normal_return_url ⇒ Object
Returns the value of attribute normal_return_url.
-
.secret_key ⇒ Object
Returns the value of attribute secret_key.
-
.url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
Class Attribute Details
.automatic_response_url ⇒ Object
Returns the value of attribute automatic_response_url.
8 9 10 |
# File 'lib/mercanet.rb', line 8 def automatic_response_url @automatic_response_url end |
.environment ⇒ Object
Returns the value of attribute environment.
8 9 10 |
# File 'lib/mercanet.rb', line 8 def environment @environment end |
.interface_version ⇒ Object
Returns the value of attribute interface_version.
8 9 10 |
# File 'lib/mercanet.rb', line 8 def interface_version @interface_version end |
.key_version ⇒ Object
Returns the value of attribute key_version.
8 9 10 |
# File 'lib/mercanet.rb', line 8 def key_version @key_version end |
.merchant_id ⇒ Object
Returns the value of attribute merchant_id.
8 9 10 |
# File 'lib/mercanet.rb', line 8 def merchant_id @merchant_id end |
.normal_return_url ⇒ Object
Returns the value of attribute normal_return_url.
8 9 10 |
# File 'lib/mercanet.rb', line 8 def normal_return_url @normal_return_url end |
.secret_key ⇒ Object
Returns the value of attribute secret_key.
8 9 10 |
# File 'lib/mercanet.rb', line 8 def secret_key @secret_key end |
.url ⇒ Object
Returns the value of attribute url.
8 9 10 |
# File 'lib/mercanet.rb', line 8 def url @url end |
Class Method Details
.config {|_self| ... } ⇒ Object
10 11 12 |
# File 'lib/mercanet.rb', line 10 def config(&block) yield(self) end |
.development? ⇒ Boolean
14 15 16 |
# File 'lib/mercanet.rb', line 14 def development? %w(test development).include?(environment) end |