Class: CanTango::License

Inherits:
Object
  • Object
show all
Includes:
Rules
Defined in:
lib/cantango/license.rb,
lib/cantango/license/rules.rb

Defined Under Namespace

Modules: Rules

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Rules

#can, #cannot, #owns

Constructor Details

#initialize(ability) ⇒ License

Returns a new instance of License.



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

def initialize ability
  @ability   = ability
end

Instance Attribute Details

#abilityObject (readonly)

Returns the value of attribute ability.



7
8
9
# File 'lib/cantango/license.rb', line 7

def ability
  @ability
end

#licensesObject (readonly)

Returns the value of attribute licenses.



7
8
9
# File 'lib/cantango/license.rb', line 7

def licenses
  @licenses
end

Instance Method Details

#calc_rulesObject



13
14
# File 'lib/cantango/license.rb', line 13

def calc_rules
end

#executeObject



16
17
# File 'lib/cantango/license.rb', line 16

def execute
end