Class: SourceLicenseSDK::Configuration
- Inherits:
-
Object
- Object
- SourceLicenseSDK::Configuration
- Defined in:
- lib/source_license_sdk.rb
Instance Attribute Summary collapse
-
#auto_generate_machine_id ⇒ Object
Returns the value of attribute auto_generate_machine_id.
-
#license_key ⇒ Object
Returns the value of attribute license_key.
-
#machine_id ⇒ Object
Returns the value of attribute machine_id.
-
#server_url ⇒ Object
Returns the value of attribute server_url.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
-
#verify_ssl ⇒ Object
Returns the value of attribute verify_ssl.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #valid? ⇒ Boolean
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
79 80 81 82 83 84 85 86 87 |
# File 'lib/source_license_sdk.rb', line 79 def initialize @server_url = nil @license_key = nil @machine_id = nil @auto_generate_machine_id = true @timeout = 30 @user_agent = "SourceLicenseSDK/#{VERSION}" @verify_ssl = true end |
Instance Attribute Details
#auto_generate_machine_id ⇒ Object
Returns the value of attribute auto_generate_machine_id.
76 77 78 |
# File 'lib/source_license_sdk.rb', line 76 def auto_generate_machine_id @auto_generate_machine_id end |
#license_key ⇒ Object
Returns the value of attribute license_key.
76 77 78 |
# File 'lib/source_license_sdk.rb', line 76 def license_key @license_key end |
#machine_id ⇒ Object
Returns the value of attribute machine_id.
76 77 78 |
# File 'lib/source_license_sdk.rb', line 76 def machine_id @machine_id end |
#server_url ⇒ Object
Returns the value of attribute server_url.
76 77 78 |
# File 'lib/source_license_sdk.rb', line 76 def server_url @server_url end |
#timeout ⇒ Object
Returns the value of attribute timeout.
76 77 78 |
# File 'lib/source_license_sdk.rb', line 76 def timeout @timeout end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
76 77 78 |
# File 'lib/source_license_sdk.rb', line 76 def user_agent @user_agent end |
#verify_ssl ⇒ Object
Returns the value of attribute verify_ssl.
76 77 78 |
# File 'lib/source_license_sdk.rb', line 76 def verify_ssl @verify_ssl end |
Instance Method Details
#valid? ⇒ Boolean
89 90 91 |
# File 'lib/source_license_sdk.rb', line 89 def valid? !server_url.nil? && !server_url.empty? end |