Class: Prof::OpsManager::WebAppInternals::Page::InstallationProgress::InstallStep

Inherits:
Object
  • Object
show all
Defined in:
lib/prof/ops_manager/web_app_internals/page/installation_progress.rb

Defined Under Namespace

Classes: InstallStepNotPresent

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(node:, page:, index: index, total: total) ⇒ InstallStep

Returns a new instance of InstallStep.



110
111
112
113
114
115
# File 'lib/prof/ops_manager/web_app_internals/page/installation_progress.rb', line 110

def initialize(node:, page:, index: index, total: total)
  @id    = node['data-step-id']
  @page  = page
  @index = index
  @total = total
end

Instance Attribute Details

#indexObject (readonly)

Returns the value of attribute index.



133
134
135
# File 'lib/prof/ops_manager/web_app_internals/page/installation_progress.rb', line 133

def index
  @index
end

#totalObject (readonly)

Returns the value of attribute total.



133
134
135
# File 'lib/prof/ops_manager/web_app_internals/page/installation_progress.rb', line 133

def total
  @total
end

Instance Method Details

#finished?Boolean

Returns:

  • (Boolean)


121
122
123
# File 'lib/prof/ops_manager/web_app_internals/page/installation_progress.rb', line 121

def finished?
  state == 'finished'
end

#nameObject



117
118
119
# File 'lib/prof/ops_manager/web_app_internals/page/installation_progress.rb', line 117

def name
  node.text
end

#stateObject



125
126
127
# File 'lib/prof/ops_manager/web_app_internals/page/installation_progress.rb', line 125

def state
  node['data-step-state']
end

#to_sObject



129
130
131
# File 'lib/prof/ops_manager/web_app_internals/page/installation_progress.rb', line 129

def to_s
  name
end