Class: Spaceship::Tunes::AppVersionHistory

Inherits:
TunesBase show all
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

Attributes inherited from Base

#client, #raw_data

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from TunesBase

client

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

#applicationSpaceship::Tunes::Application

Returns A reference to the application this version is for.

Returns:



7
8
9
# File 'lib/spaceship/tunes/app_version_history.rb', line 7

def application
  @application
end

#itemsObject (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_idString (readonly)

Returns The platform value of this version.

Returns:

  • (String)

    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_stringString (readonly)

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

Returns:

  • (String)

    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

#setupObject

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