class Omc::Instance

Attributes

attributes[R]
stack[R]

Public Class Methods

new(stack, attributes) click to toggle source
# File lib/omc/instances.rb, line 12
def initialize stack, attributes
  @stack = stack
  @attributes = attributes
end

Public Instance Methods

offline?() click to toggle source
# File lib/omc/instances.rb, line 21
def offline?
  !online?
end
online?() click to toggle source
# File lib/omc/instances.rb, line 17
def online?
  attributes[:status] == "online"
end