Class: Spaceship::Tunes::AppVersionHistory

Inherits:
TunesBase show all
Defined in:
spaceship/lib/spaceship/tunes/app_version_history.rb

Overview

Represents a read only version of an App Store Connect Versions State History

Instance Attribute Summary collapse

Attributes inherited from Base

#client, #raw_data

Instance Method Summary collapse

Methods inherited from TunesBase

client

Methods inherited from Base

attr_accessor, attr_mapping, attributes, #attributes, factory, #initialize, #inspect, mapping_module, method_missing, set_client, #to_s

Constructor Details

This class inherits a constructor from Spaceship::Base

Instance Attribute Details

#applicationSpaceship::Tunes::Application

Returns A reference to the application this version is for.

Returns:



9
10
11
# File 'spaceship/lib/spaceship/tunes/app_version_history.rb', line 9

def application
  @application
end

#itemsObject (readonly)

Returns an array of all builds that can be sent to review



18
19
20
# File 'spaceship/lib/spaceship/tunes/app_version_history.rb', line 18

def items
  @items
end

#version_idString (readonly)

Returns The platform value of this version.

Returns:

  • (String)

    The platform value of this version.



15
16
17
# File 'spaceship/lib/spaceship/tunes/app_version_history.rb', line 15

def version_id
  @version_id
end

#version_stringString (readonly)

Returns The version in string format (e.g. “1.0”).

Returns:

  • (String)

    The version in string format (e.g. “1.0”)



12
13
14
# File 'spaceship/lib/spaceship/tunes/app_version_history.rb', line 12

def version_string
  @version_string
end

Instance Method Details

#setupObject

Private methods



32
33
34
35
36
# File 'spaceship/lib/spaceship/tunes/app_version_history.rb', line 32

def setup
  # Properly parse the AppStatus
  items = raw_data['items']
  @items = map_items(items) if items
end