Class: Adamantite::GUI::Request::SetMasterLicenseKeyRequest
- Inherits:
-
Object
- Object
- Adamantite::GUI::Request::SetMasterLicenseKeyRequest
- Defined in:
- lib/gui/request/set_master_license_key_request.rb
Instance Attribute Summary collapse
-
#adamantite ⇒ Object
Returns the value of attribute adamantite.
-
#master_license_key ⇒ Object
Returns the value of attribute master_license_key.
-
#master_license_key_activated ⇒ Object
Returns the value of attribute master_license_key_activated.
Instance Method Summary collapse
- #activate_license! ⇒ Object
-
#initialize(adamantite) ⇒ SetMasterLicenseKeyRequest
constructor
A new instance of SetMasterLicenseKeyRequest.
Constructor Details
#initialize(adamantite) ⇒ SetMasterLicenseKeyRequest
Returns a new instance of SetMasterLicenseKeyRequest.
9 10 11 12 |
# File 'lib/gui/request/set_master_license_key_request.rb', line 9 def initialize(adamantite) @adamantite = adamantite @master_license_key_activated = false end |
Instance Attribute Details
#adamantite ⇒ Object
Returns the value of attribute adamantite.
7 8 9 |
# File 'lib/gui/request/set_master_license_key_request.rb', line 7 def adamantite @adamantite end |
#master_license_key ⇒ Object
Returns the value of attribute master_license_key.
7 8 9 |
# File 'lib/gui/request/set_master_license_key_request.rb', line 7 def master_license_key @master_license_key end |
#master_license_key_activated ⇒ Object
Returns the value of attribute master_license_key_activated.
7 8 9 |
# File 'lib/gui/request/set_master_license_key_request.rb', line 7 def master_license_key_activated @master_license_key_activated end |
Instance Method Details
#activate_license! ⇒ Object
14 15 16 17 |
# File 'lib/gui/request/set_master_license_key_request.rb', line 14 def activate_license! @adamantite.activate_license!(master_license_key) @master_license_key_activated = true if @adamantite.licensed? end |