Class: Adminterface::Licensing::Notice
- Inherits:
-
Object
- Object
- Adminterface::Licensing::Notice
- Extended by:
- Callable
- Defined in:
- lib/adminterface/licensing/notice.rb
Instance Attribute Summary collapse
-
#endpoint ⇒ Object
readonly
Returns the value of attribute endpoint.
-
#external ⇒ Object
readonly
Returns the value of attribute external.
-
#license_key ⇒ Object
readonly
Returns the value of attribute license_key.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(response, license_key, external: true, endpoint: nil) ⇒ Notice
constructor
A new instance of Notice.
Constructor Details
#initialize(response, license_key, external: true, endpoint: nil) ⇒ Notice
Returns a new instance of Notice.
7 8 9 10 11 12 |
# File 'lib/adminterface/licensing/notice.rb', line 7 def initialize(response, license_key, external: true, endpoint: nil) @response = response @license_key = license_key @external = external @endpoint = endpoint end |
Instance Attribute Details
#endpoint ⇒ Object (readonly)
Returns the value of attribute endpoint.
5 6 7 |
# File 'lib/adminterface/licensing/notice.rb', line 5 def endpoint @endpoint end |
#external ⇒ Object (readonly)
Returns the value of attribute external.
5 6 7 |
# File 'lib/adminterface/licensing/notice.rb', line 5 def external @external end |
#license_key ⇒ Object (readonly)
Returns the value of attribute license_key.
5 6 7 |
# File 'lib/adminterface/licensing/notice.rb', line 5 def license_key @license_key end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
5 6 7 |
# File 'lib/adminterface/licensing/notice.rb', line 5 def response @response end |
Instance Method Details
#call ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/adminterface/licensing/notice.rb', line 14 def call return unless Rails.env.development? log("========================================") log() log("========================================") end |