Class: Adminterface::Licensing::Notice

Inherits:
Object
  • Object
show all
Extended by:
Callable
Defined in:
lib/adminterface/licensing/notice.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#endpointObject (readonly)

Returns the value of attribute endpoint.



5
6
7
# File 'lib/adminterface/licensing/notice.rb', line 5

def endpoint
  @endpoint
end

#externalObject (readonly)

Returns the value of attribute external.



5
6
7
# File 'lib/adminterface/licensing/notice.rb', line 5

def external
  @external
end

#license_keyObject (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

#responseObject (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

#callObject



14
15
16
17
18
19
20
# File 'lib/adminterface/licensing/notice.rb', line 14

def call
  return unless Rails.env.development?

  log("========================================")
  log(messages)
  log("========================================")
end