Class: Superfeature::Feature
- Inherits:
-
Object
- Object
- Superfeature::Feature
- Defined in:
- lib/superfeature.rb
Instance Attribute Summary collapse
-
#limit ⇒ Object
readonly
Returns the value of attribute limit.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#plan ⇒ Object
readonly
Returns the value of attribute plan.
Instance Method Summary collapse
-
#initialize(plan:, name:, limit: Limit::Base.new) ⇒ Feature
constructor
A new instance of Feature.
Constructor Details
#initialize(plan:, name:, limit: Limit::Base.new) ⇒ Feature
Returns a new instance of Feature.
14 15 16 17 18 |
# File 'lib/superfeature.rb', line 14 def initialize(plan:, name:, limit: Limit::Base.new) @plan = plan @limit = limit @name = name end |
Instance Attribute Details
#limit ⇒ Object (readonly)
Returns the value of attribute limit.
10 11 12 |
# File 'lib/superfeature.rb', line 10 def limit @limit end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
10 11 12 |
# File 'lib/superfeature.rb', line 10 def name @name end |
#plan ⇒ Object (readonly)
Returns the value of attribute plan.
10 11 12 |
# File 'lib/superfeature.rb', line 10 def plan @plan end |