Class: OpsManagerUiDrivers::Version19::JobStatusHelper
- Inherits:
-
Object
- Object
- OpsManagerUiDrivers::Version19::JobStatusHelper
- Defined in:
- lib/ops_manager_ui_drivers/version19/job_status_helper.rb
Instance Attribute Summary collapse
-
#az ⇒ Object
readonly
Returns the value of attribute az.
-
#ips ⇒ Object
readonly
Returns the value of attribute ips.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ips:, az:) ⇒ JobStatusHelper
constructor
A new instance of JobStatusHelper.
Constructor Details
#initialize(ips:, az:) ⇒ JobStatusHelper
Returns a new instance of JobStatusHelper.
11 12 13 14 |
# File 'lib/ops_manager_ui_drivers/version19/job_status_helper.rb', line 11 def initialize(ips:, az:) @ips = ips @az = az end |
Instance Attribute Details
#az ⇒ Object (readonly)
Returns the value of attribute az.
16 17 18 |
# File 'lib/ops_manager_ui_drivers/version19/job_status_helper.rb', line 16 def az @az end |
#ips ⇒ Object (readonly)
Returns the value of attribute ips.
16 17 18 |
# File 'lib/ops_manager_ui_drivers/version19/job_status_helper.rb', line 16 def ips @ips end |
Class Method Details
.from_job_row(job_row) ⇒ Object
4 5 6 7 8 9 |
# File 'lib/ops_manager_ui_drivers/version19/job_status_helper.rb', line 4 def self.from_job_row(job_row) ips_string = job_row.find('.actual-ips').text ips = ips_string.split(', ') az = job_row.all('.az').first.try(:text) new(ips: ips, az: az) end |