Class: CanTango::Permits::License
- Inherits:
-
Object
- Object
- CanTango::Permits::License
- 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
Instance Attribute Summary collapse
-
#licenses ⇒ Object
readonly
Returns the value of attribute licenses.
-
#permit ⇒ Object
readonly
Returns the value of attribute permit.
Instance Method Summary collapse
- #dynamic_rules ⇒ Object
-
#initialize(permit) ⇒ License
constructor
A new instance of License.
- #license_rules ⇒ Object
- #permit_rules ⇒ Object
- #static_rules ⇒ Object
Methods included from Loader
Methods included from Rules::Dsl
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
#licenses ⇒ Object (readonly)
Returns the value of attribute licenses.
9 10 11 |
# File 'lib/cantango/permits/license.rb', line 9 def licenses @licenses end |
#permit ⇒ Object (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_rules ⇒ Object
27 28 |
# File 'lib/cantango/permits/license.rb', line 27 def dynamic_rules end |
#license_rules ⇒ Object
15 16 17 18 19 |
# File 'lib/cantango/permits/license.rb', line 15 def license_rules static_rules permit_rules dynamic_rules end |
#permit_rules ⇒ Object
21 22 |
# File 'lib/cantango/permits/license.rb', line 21 def permit_rules end |
#static_rules ⇒ Object
24 25 |
# File 'lib/cantango/permits/license.rb', line 24 def static_rules end |