Class: Hackle::Action
- Inherits:
-
Object
- Object
- Hackle::Action
- Defined in:
- lib/hackle/internal/model/action.rb
Instance Attribute Summary collapse
-
#bucket_id ⇒ Object
readonly
Returns the value of attribute bucket_id.
- #type ⇒ ActionType readonly
- #variation_id ⇒ Integer? readonly
Instance Method Summary collapse
-
#initialize(type:, variation_id: nil, bucket_id: nil) ⇒ Action
constructor
A new instance of Action.
Constructor Details
#initialize(type:, variation_id: nil, bucket_id: nil) ⇒ Action
Returns a new instance of Action.
17 18 19 20 21 |
# File 'lib/hackle/internal/model/action.rb', line 17 def initialize(type:, variation_id: nil, bucket_id: nil) @type = type @variation_id = variation_id @bucket_id = bucket_id end |
Instance Attribute Details
#bucket_id ⇒ Object (readonly)
Returns the value of attribute bucket_id.
12 |
# File 'lib/hackle/internal/model/action.rb', line 12 attr_reader :type, :variation_id, :bucket_id |
#type ⇒ ActionType (readonly)
12 13 14 |
# File 'lib/hackle/internal/model/action.rb', line 12 def type @type end |
#variation_id ⇒ Integer? (readonly)
12 |
# File 'lib/hackle/internal/model/action.rb', line 12 attr_reader :type, :variation_id, :bucket_id |