Class: Spaceship::Tunes::Build

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

Overview

Represents a build which is inside the build train

Direct Known Subclasses

ProcessingBuild

General metadata collapse

Analytics collapse

Attributes inherited from Base

#raw_data

Analytics collapse

Methods inherited from TunesBase

client

Methods inherited from Base

attr_mapping, #client, #initialize, #inspect, mapping_module, method_missing, set_client, #setup

Constructor Details

This class inherits a constructor from Spaceship::Base

Instance Attribute Details

#app_nameString

Returns:



32
33
34
# File 'lib/spaceship/tunes/build.rb', line 32

def app_name
  @app_name
end

#build_trainSpaceship::Tunes::Application

Returns A reference to the build train this build is contained in.

Returns:



11
12
13
# File 'lib/spaceship/tunes/build.rb', line 11

def build_train
  @build_train
end

#build_versionString

Returns The build version (not the version number).

Returns:

  • (String)

    The build version (not the version number)



20
21
22
# File 'lib/spaceship/tunes/build.rb', line 20

def build_version
  @build_version
end

#crash_countInteger

Returns Might be nil. The number of crashes of this build.

Returns:

  • (Integer)

    Might be nil. The number of crashes of this build



63
64
65
# File 'lib/spaceship/tunes/build.rb', line 63

def crash_count
  @crash_count
end

#external_install_countInteger

Returns Number of installs for this build that come from external users.

Returns:

  • (Integer)

    Number of installs for this build that come from external users



57
58
59
# File 'lib/spaceship/tunes/build.rb', line 57

def external_install_count
  @external_install_count
end

#icon_urlString

Returns URL to the app icon of this build (150x150px).

Returns:

  • (String)

    URL to the app icon of this build (150x150px)



29
30
31
# File 'lib/spaceship/tunes/build.rb', line 29

def icon_url
  @icon_url
end

#idInteger

Returns The ID generated by iTunes Connect.

Returns:

  • (Integer)

    The ID generated by iTunes Connect



14
15
16
# File 'lib/spaceship/tunes/build.rb', line 14

def id
  @id
end

#install_countInteger

Returns Number of installs of this build.

Returns:

  • (Integer)

    Number of installs of this build



51
52
53
# File 'lib/spaceship/tunes/build.rb', line 51

def install_count
  @install_count
end

#internal_expiry_dateInteger

Returns When is this build going to be invalid.

Returns:

  • (Integer)

    When is this build going to be invalid



38
39
40
# File 'lib/spaceship/tunes/build.rb', line 38

def internal_expiry_date
  @internal_expiry_date
end

#internal_install_countInteger

Returns Number of installs for this build that come from internal users.

Returns:

  • (Integer)

    Number of installs for this build that come from internal users



54
55
56
# File 'lib/spaceship/tunes/build.rb', line 54

def internal_install_count
  @internal_install_count
end

#platformString

Returns The platform of this build (e.g. ‘ios’).

Returns:

  • (String)

    The platform of this build (e.g. ‘ios’)



35
36
37
# File 'lib/spaceship/tunes/build.rb', line 35

def platform
  @platform
end

#ready_to_installBool

Returns :.

Returns:

  • (Bool)

    :



44
45
46
# File 'lib/spaceship/tunes/build.rb', line 44

def ready_to_install
  @ready_to_install
end

#session_countInteger

Returns Might be nil. The number of sessions for this build.

Returns:

  • (Integer)

    Might be nil. The number of sessions for this build



60
61
62
# File 'lib/spaceship/tunes/build.rb', line 60

def session_count
  @session_count
end

#train_versionString

Returns The version number (e.g. 1.3).

Returns:

  • (String)

    The version number (e.g. 1.3)



23
24
25
# File 'lib/spaceship/tunes/build.rb', line 23

def train_version
  @train_version
end

#upload_dateInteger

Returns The number of ticks since 1970 (e.g. 1413966436000).

Returns:

  • (Integer)

    The number of ticks since 1970 (e.g. 1413966436000)



26
27
28
# File 'lib/spaceship/tunes/build.rb', line 26

def upload_date
  @upload_date
end

#validBoolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/spaceship/tunes/build.rb', line 17

def valid
  @valid
end

#watch_kit_enabledBool

Returns Does this build support WatchKit?.

Returns:

  • (Bool)

    Does this build support WatchKit?



41
42
43
# File 'lib/spaceship/tunes/build.rb', line 41

def watch_kit_enabled
  @watch_kit_enabled
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.



88
89
90
# File 'lib/spaceship/tunes/build.rb', line 88

def factory(attrs)
  self.new(attrs)
end