Class: Avo::Licensing::NilLicense
- Defined in:
- lib/avo/licensing/nil_license.rb
Instance Attribute Summary
Attributes inherited from License
#id, #payload, #response, #valid
Instance Method Summary collapse
-
#initialize(response = nil) ⇒ NilLicense
constructor
A new instance of NilLicense.
Methods inherited from License
#abilities, #advanced?, #can, #cant, #error, #has_with_trial, #invalid?, #lacks_with_trial, #name, #pro?, #properties, #valid?
Constructor Details
#initialize(response = nil) ⇒ NilLicense
Returns a new instance of NilLicense.
4 5 6 7 8 9 10 11 |
# File 'lib/avo/licensing/nil_license.rb', line 4 def initialize(response = nil) response ||= { id: "community", valid: true } super(response) end |