Class: CanTango::Permits::License

Inherits:
Object
  • Object
show all
Includes:
Loader, Rules
Included in:
Permit
Defined in:
lib/cantango/permits/license.rb,
lib/cantango/permits/license/rules.rb,
lib/cantango/permits/license/loader.rb

Defined Under Namespace

Modules: Loader, Rules

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Loader

#load_rules

Methods included from Rules::Dsl

included, #scope

Constructor Details

#initialize(permit) ⇒ License

Returns a new instance of License.



11
12
13
# File 'lib/cantango/permits/license.rb', line 11

def initialize permit
  @permit   = permit
end

Instance Attribute Details

#licensesObject (readonly)

Returns the value of attribute licenses.



9
10
11
# File 'lib/cantango/permits/license.rb', line 9

def licenses
  @licenses
end

#permitObject (readonly)

Returns the value of attribute permit.



9
10
11
# File 'lib/cantango/permits/license.rb', line 9

def permit
  @permit
end

Instance Method Details

#dynamic_rulesObject



27
28
# File 'lib/cantango/permits/license.rb', line 27

def dynamic_rules
end

#license_rulesObject



15
16
17
18
19
# File 'lib/cantango/permits/license.rb', line 15

def license_rules
  static_rules
  permit_rules
  dynamic_rules
end

#permit_rulesObject



21
22
# File 'lib/cantango/permits/license.rb', line 21

def permit_rules
end

#static_rulesObject



24
25
# File 'lib/cantango/permits/license.rb', line 24

def static_rules
end