Class: Saman::Configuration
- Inherits:
-
Object
- Object
- Saman::Configuration
- Defined in:
- lib/saman/configuration.rb
Overview
configure class
Instance Attribute Summary collapse
- #authorize_address ⇒ Object
- #authorize_wsdl ⇒ Object
-
#password ⇒ Object
Returns the value of attribute password.
-
#proxy ⇒ Object
Returns the value of attribute proxy.
- #retry_count ⇒ Object
-
#terminal_id_default ⇒ Object
Returns the value of attribute terminal_id_default.
-
#terminal_id_wage_only ⇒ Object
Returns the value of attribute terminal_id_wage_only.
-
#terminal_id_with_wage ⇒ Object
Returns the value of attribute terminal_id_with_wage.
-
#username ⇒ Object
Returns the value of attribute username.
- #verify_wsdl ⇒ Object
Instance Attribute Details
#authorize_address ⇒ Object
27 28 29 |
# File 'lib/saman/configuration.rb', line 27 def @authorize_address || 'https://sep.shaparak.ir/MobilePG/MobilePayment' end |
#authorize_wsdl ⇒ Object
35 36 37 |
# File 'lib/saman/configuration.rb', line 35 def @authorize_wsdl || 'https://sep.shaparak.ir/payments/initpayment.asmx?wsdl' end |
#password ⇒ Object
Returns the value of attribute password.
17 18 19 |
# File 'lib/saman/configuration.rb', line 17 def password @password end |
#proxy ⇒ Object
Returns the value of attribute proxy.
18 19 20 |
# File 'lib/saman/configuration.rb', line 18 def proxy @proxy end |
#retry_count ⇒ Object
39 40 41 |
# File 'lib/saman/configuration.rb', line 39 def retry_count @retry_count || 3 end |
#terminal_id_default ⇒ Object
Returns the value of attribute terminal_id_default.
19 20 21 |
# File 'lib/saman/configuration.rb', line 19 def terminal_id_default @terminal_id_default end |
#terminal_id_wage_only ⇒ Object
Returns the value of attribute terminal_id_wage_only.
21 22 23 |
# File 'lib/saman/configuration.rb', line 21 def terminal_id_wage_only @terminal_id_wage_only end |
#terminal_id_with_wage ⇒ Object
Returns the value of attribute terminal_id_with_wage.
20 21 22 |
# File 'lib/saman/configuration.rb', line 20 def terminal_id_with_wage @terminal_id_with_wage end |
#username ⇒ Object
Returns the value of attribute username.
16 17 18 |
# File 'lib/saman/configuration.rb', line 16 def username @username end |
#verify_wsdl ⇒ Object
31 32 33 |
# File 'lib/saman/configuration.rb', line 31 def verify_wsdl @verify_wsdl || 'https://verify.sep.ir/payments/referencepayment.asmx?wsdl' end |