Class: RubyEcommClient::Config

Inherits:
Object
  • Object
show all
Includes:
Utils
Defined in:
lib/ruby-ecomm-client/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Utils

included

Instance Attribute Details

#requesting_appObject

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_contentObject

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_fileObject

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_contentObject

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_fileObject

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

#validateObject

Raises:

  • (ArgumentError)


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