Class: Miasma::Models::Orchestration::Stack::Plans
- Inherits:
-
Types::Collection
- Object
- Types::Collection
- Miasma::Models::Orchestration::Stack::Plans
- Defined in:
- lib/miasma/models/orchestration/plans.rb
Overview
Abstract stack plans collection
Instance Attribute Summary collapse
Attributes inherited from Types::Collection
Instance Method Summary collapse
-
#build(args = {}) ⇒ Plan
Build a new plan instance.
-
#filter(options = {}) ⇒ Array<Plans>
Return plans matching given filter.
-
#initialize(stack) ⇒ Plans
constructor
Override to capture originating stack.
-
#model ⇒ Plan
Collection item class.
Methods inherited from Types::Collection
#all, #from_json, #get, #reload, #to_json
Methods included from Utils::ApiMethoding
Constructor Details
#initialize(stack) ⇒ Plans
Override to capture originating stack
16 17 18 19 |
# File 'lib/miasma/models/orchestration/plans.rb', line 16 def initialize(stack) @stack = stack super stack.api end |
Instance Attribute Details
#stack ⇒ Miasma::Models::Orchestration::Stack (readonly)
11 12 13 |
# File 'lib/miasma/models/orchestration/plans.rb', line 11 def stack @stack end |
Instance Method Details
#build(args = {}) ⇒ Plan
Build a new plan instance
33 34 35 |
# File 'lib/miasma/models/orchestration/plans.rb', line 33 def build(args = {}) Plan.new(stack, args.to_smash) end |
#filter(options = {}) ⇒ Array<Plans>
Return plans matching given filter
25 26 27 |
# File 'lib/miasma/models/orchestration/plans.rb', line 25 def filter( = {}) raise NotImplementedError end |