Class: Miasma::Models::Orchestration::Stack::Event
- Inherits:
- 
      Types::Model
      
        - Object
- Types::Data
- Types::Model
- Miasma::Models::Orchestration::Stack::Event
 
- Includes:
- Utils::Immutable
- Defined in:
- lib/miasma/models/orchestration/event.rb
Overview
Stack event
Instance Attribute Summary (collapse)
- 
  
    
      - (Miasma::Types::Api) api 
    
    
  
  
    
      inherited
      from Types::Model
    
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Underlying service API. 
- 
  
    
      - (Object) stack 
    
    
  
  
  
  
    
      readonly
    
    
  
  
  
  
  
  
    Returns the value of attribute stack. 
Instance Method Summary (collapse)
- 
  
    
      - (Object) frozen_valid_state(*args) 
    
    
  
  
    
      included
      from Utils::Immutable
    
  
  
  
  
  
  
  
  
    Freezes underlying data hash. 
- 
  
    
      - (Event) initialize(stack, args = {}) 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of Event. 
- - (Resource) resource
- - (Object) save included from Utils::Immutable
Constructor Details
- (Event) initialize(stack, args = {})
Returns a new instance of Event
| 21 22 23 24 | # File 'lib/miasma/models/orchestration/event.rb', line 21 def initialize(stack, args={}) @stack = stack super stack.api, args end | 
Instance Attribute Details
- (Miasma::Types::Api) api (readonly) Originally defined in class Types::Model
Returns underlying service API
- (Object) stack (readonly)
Returns the value of attribute stack
| 19 20 21 | # File 'lib/miasma/models/orchestration/event.rb', line 19 def stack @stack end | 
Instance Method Details
- (Object) frozen_valid_state(*args) Originally defined in module Utils::Immutable
Freezes underlying data hash
- (Resource) resource
| 27 28 29 | # File 'lib/miasma/models/orchestration/event.rb', line 27 def resource stack.resources.get(self.resource_id) end |