Class: Spaceship::ConnectAPI::AppStoreVersionPhasedRelease

Inherits:
Object
  • Object
show all
Includes:
Model
Defined in:
spaceship/lib/spaceship/connect_api/models/app_store_version_phased_release.rb

Defined Under Namespace

Modules: PhasedReleaseState

Instance Attribute Summary collapse

Attributes included from Model

#id, #reverse_attr_map

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Model

#attr_mapping, included, #initialize, #reverse_attr_mapping, #to_json, #update_attributes

Instance Attribute Details

#current_day_numberObject

Returns the value of attribute current_day_number.



10
11
12
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_phased_release.rb', line 10

def current_day_number
  @current_day_number
end

#phased_release_stateObject

Returns the value of attribute phased_release_state.



7
8
9
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_phased_release.rb', line 7

def phased_release_state
  @phased_release_state
end

#start_dateObject

Returns the value of attribute start_date.



8
9
10
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_phased_release.rb', line 8

def start_date
  @start_date
end

#total_pause_durationObject

Returns the value of attribute total_pause_duration.



9
10
11
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_phased_release.rb', line 9

def total_pause_duration
  @total_pause_duration
end

Class Method Details

.typeObject



26
27
28
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_phased_release.rb', line 26

def self.type
  return "appStoreVersionPhasedReleases"
end

Instance Method Details

#completeObject



42
43
44
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_phased_release.rb', line 42

def complete
  update(PhasedReleaseState::COMPLETE)
end

#delete!(filter: {}, includes: nil, limit: nil, sort: nil) ⇒ Object



46
47
48
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_phased_release.rb', line 46

def delete!(filter: {}, includes: nil, limit: nil, sort: nil)
  Spaceship::ConnectAPI.delete_app_store_version_phased_release(app_store_version_phased_release_id: id)
end

#pauseObject

API



34
35
36
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_phased_release.rb', line 34

def pause
  update(PhasedReleaseState::PAUSED)
end

#resumeObject



38
39
40
# File 'spaceship/lib/spaceship/connect_api/models/app_store_version_phased_release.rb', line 38

def resume
  update(PhasedReleaseState::ACTIVE)
end