Class: Prof::OpsManager::WebAppInternals::Page::InstallationProgress::InstallStep
- Inherits:
-
Object
- Object
- Prof::OpsManager::WebAppInternals::Page::InstallationProgress::InstallStep
- Defined in:
- lib/prof/ops_manager/web_app_internals/page/installation_progress.rb
Defined Under Namespace
Classes: InstallStepNotPresent
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#total ⇒ Object
readonly
Returns the value of attribute total.
Instance Method Summary collapse
- #finished? ⇒ Boolean
-
#initialize(node:, page:, index: index, total: total) ⇒ InstallStep
constructor
A new instance of InstallStep.
- #name ⇒ Object
- #state ⇒ Object
- #to_s ⇒ Object
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
#index ⇒ Object (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 |
#total ⇒ Object (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
121 122 123 |
# File 'lib/prof/ops_manager/web_app_internals/page/installation_progress.rb', line 121 def finished? state == 'finished' end |
#name ⇒ Object
117 118 119 |
# File 'lib/prof/ops_manager/web_app_internals/page/installation_progress.rb', line 117 def name node.text end |
#state ⇒ Object
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_s ⇒ Object
129 130 131 |
# File 'lib/prof/ops_manager/web_app_internals/page/installation_progress.rb', line 129 def to_s name end |