Class: Mxrb::DomainDiagram::Lifecycle::Status

Inherits:
Data
  • Object
show all
Defined in:
lib/mxrb/domain_diagram/lifecycle.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#logObject (readonly)

Returns the value of attribute log

Returns:

  • (Object)

    the current value of log



21
22
23
# File 'lib/mxrb/domain_diagram/lifecycle.rb', line 21

def log
  @log
end

#outputObject (readonly)

Returns the value of attribute output

Returns:

  • (Object)

    the current value of output



21
22
23
# File 'lib/mxrb/domain_diagram/lifecycle.rb', line 21

def output
  @output
end

#pidObject (readonly)

Returns the value of attribute pid

Returns:

  • (Object)

    the current value of pid



21
22
23
# File 'lib/mxrb/domain_diagram/lifecycle.rb', line 21

def pid
  @pid
end

#sourceObject (readonly)

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



21
22
23
# File 'lib/mxrb/domain_diagram/lifecycle.rb', line 21

def source
  @source
end

#stateObject (readonly)

Returns the value of attribute state

Returns:

  • (Object)

    the current value of state



21
22
23
# File 'lib/mxrb/domain_diagram/lifecycle.rb', line 21

def state
  @state
end

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



21
22
23
# File 'lib/mxrb/domain_diagram/lifecycle.rb', line 21

def url
  @url
end

Instance Method Details

#running?Boolean

Returns:

  • (Boolean)


22
# File 'lib/mxrb/domain_diagram/lifecycle.rb', line 22

def running? = state == 'running'

#to_hObject



23
# File 'lib/mxrb/domain_diagram/lifecycle.rb', line 23

def to_h = { state:, source:, output:, url:, pid:, log: }.compact