Class: Avo::Licensing::NilLicense

Inherits:
License
  • Object
show all
Defined in:
lib/avo/licensing/nil_license.rb

Instance Attribute Summary

Attributes inherited from License

#id, #payload, #response, #valid

Instance Method Summary collapse

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