Class: Spaceship::Tunes::AppVersionHistory
- Defined in:
- lib/spaceship/tunes/app_version_history.rb
Overview
Represents a read only version of an iTunes Connect Versions State History
Instance Attribute Summary collapse
-
#application ⇒ Spaceship::Tunes::Application
A reference to the application this version is for.
-
#items ⇒ Object
readonly
Returns an array of all builds that can be sent to review.
-
#version_id ⇒ String
readonly
The platform value of this version.
-
#version_string ⇒ String
readonly
The version in string format (e.g. “1.0”).
Attributes inherited from Base
Class Method Summary collapse
-
.factory(attrs) ⇒ Object
Create a new object based on a hash.
Instance Method Summary collapse
-
#setup ⇒ Object
Private methods.
Methods inherited from TunesBase
Methods inherited from Base
attr_accessor, attr_mapping, #attributes, attributes, #initialize, #inspect, mapping_module, method_missing, set_client, #to_s
Constructor Details
This class inherits a constructor from Spaceship::Base
Instance Attribute Details
#application ⇒ Spaceship::Tunes::Application
Returns A reference to the application this version is for.
7 8 9 |
# File 'lib/spaceship/tunes/app_version_history.rb', line 7 def application @application end |
#items ⇒ Object (readonly)
Returns an array of all builds that can be sent to review
16 17 18 |
# File 'lib/spaceship/tunes/app_version_history.rb', line 16 def items @items end |
#version_id ⇒ String (readonly)
Returns The platform value of this version.
13 14 15 |
# File 'lib/spaceship/tunes/app_version_history.rb', line 13 def version_id @version_id end |
#version_string ⇒ String (readonly)
Returns The version in string format (e.g. “1.0”).
10 11 12 |
# File 'lib/spaceship/tunes/app_version_history.rb', line 10 def version_string @version_string end |
Class Method Details
.factory(attrs) ⇒ Object
Create a new object based on a hash. This is used to create a new object based on the server response.
27 28 29 30 |
# File 'lib/spaceship/tunes/app_version_history.rb', line 27 def factory(attrs) obj = self.new(attrs) return obj end |
Instance Method Details
#setup ⇒ Object
Private methods
39 40 41 42 43 |
# File 'lib/spaceship/tunes/app_version_history.rb', line 39 def setup # Properly parse the AppStatus items = raw_data['items'] @items = map_items(items) if items end |