Class: Rox::Core::ConfigurationFetchedArgs
- Inherits:
-
Object
- Object
- Rox::Core::ConfigurationFetchedArgs
- Defined in:
- lib/rox/core/configuration/configuration_fetched_args.rb
Instance Attribute Summary collapse
-
#creation_date ⇒ Object
Returns the value of attribute creation_date.
-
#error_details ⇒ Object
Returns the value of attribute error_details.
-
#fetcher_status ⇒ Object
Returns the value of attribute fetcher_status.
-
#has_changes ⇒ Object
Returns the value of attribute has_changes.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(fetcher_status, creation_date, has_changes) ⇒ ConfigurationFetchedArgs
constructor
A new instance of ConfigurationFetchedArgs.
Constructor Details
#initialize(fetcher_status, creation_date, has_changes) ⇒ ConfigurationFetchedArgs
Returns a new instance of ConfigurationFetchedArgs.
9 10 11 12 13 14 |
# File 'lib/rox/core/configuration/configuration_fetched_args.rb', line 9 def initialize(fetcher_status, creation_date, has_changes) @fetcher_status = fetcher_status @creation_date = creation_date @has_changes = has_changes @error_details = FetcherError::NO_ERROR end |
Instance Attribute Details
#creation_date ⇒ Object
Returns the value of attribute creation_date.
7 8 9 |
# File 'lib/rox/core/configuration/configuration_fetched_args.rb', line 7 def creation_date @creation_date end |
#error_details ⇒ Object
Returns the value of attribute error_details.
7 8 9 |
# File 'lib/rox/core/configuration/configuration_fetched_args.rb', line 7 def error_details @error_details end |
#fetcher_status ⇒ Object
Returns the value of attribute fetcher_status.
7 8 9 |
# File 'lib/rox/core/configuration/configuration_fetched_args.rb', line 7 def fetcher_status @fetcher_status end |
#has_changes ⇒ Object
Returns the value of attribute has_changes.
7 8 9 |
# File 'lib/rox/core/configuration/configuration_fetched_args.rb', line 7 def has_changes @has_changes end |
Class Method Details
.error(error_details) ⇒ Object
16 17 18 19 20 |
# File 'lib/rox/core/configuration/configuration_fetched_args.rb', line 16 def self.error(error_details) args = ConfigurationFetchedArgs.new(FetcherStatus::ERROR_FETCHED_FAILED, nil, false) args.error_details = error_details args end |