Class: RubyEcommClient::Config
- Inherits:
-
Object
- Object
- RubyEcommClient::Config
- Includes:
- Utils
- Defined in:
- lib/ruby-ecomm-client/config.rb
Instance Attribute Summary collapse
-
#requesting_app ⇒ Object
Returns the value of attribute requesting_app.
-
#ssl_cert_content ⇒ Object
Returns the value of attribute ssl_cert_content.
-
#ssl_cert_file ⇒ Object
Returns the value of attribute ssl_cert_file.
-
#ssl_cert_key_content ⇒ Object
Returns the value of attribute ssl_cert_key_content.
-
#ssl_cert_key_file ⇒ Object
Returns the value of attribute ssl_cert_key_file.
Instance Method Summary collapse
Methods included from Utils
Instance Attribute Details
#requesting_app ⇒ Object
Returns the value of attribute requesting_app.
5 6 7 |
# File 'lib/ruby-ecomm-client/config.rb', line 5 def requesting_app @requesting_app end |
#ssl_cert_content ⇒ Object
Returns the value of attribute ssl_cert_content.
5 6 7 |
# File 'lib/ruby-ecomm-client/config.rb', line 5 def ssl_cert_content @ssl_cert_content end |
#ssl_cert_file ⇒ Object
Returns the value of attribute ssl_cert_file.
5 6 7 |
# File 'lib/ruby-ecomm-client/config.rb', line 5 def ssl_cert_file @ssl_cert_file end |
#ssl_cert_key_content ⇒ Object
Returns the value of attribute ssl_cert_key_content.
5 6 7 |
# File 'lib/ruby-ecomm-client/config.rb', line 5 def ssl_cert_key_content @ssl_cert_key_content end |
#ssl_cert_key_file ⇒ Object
Returns the value of attribute ssl_cert_key_file.
5 6 7 |
# File 'lib/ruby-ecomm-client/config.rb', line 5 def ssl_cert_key_file @ssl_cert_key_file end |
Instance Method Details
#validate ⇒ Object
11 12 13 |
# File 'lib/ruby-ecomm-client/config.rb', line 11 def validate raise ArgumentError.new('requesting_app must be specified') if Config.blank?(requesting_app) end |