Class: Rox::Core::ConfigurationFetchedArgs

Inherits:
Object
  • Object
show all
Defined in:
lib/rox/core/configuration/configuration_fetched_args.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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_dateObject

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_detailsObject

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_statusObject

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_changesObject

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