Class: Superfeature::Feature

Inherits:
Object
  • Object
show all
Defined in:
lib/superfeature.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#limitObject (readonly)

Returns the value of attribute limit.



10
11
12
# File 'lib/superfeature.rb', line 10

def limit
  @limit
end

#nameObject (readonly)

Returns the value of attribute name.



10
11
12
# File 'lib/superfeature.rb', line 10

def name
  @name
end

#planObject (readonly)

Returns the value of attribute plan.



10
11
12
# File 'lib/superfeature.rb', line 10

def plan
  @plan
end