Class: Spaceship::Tunes::VersionSet

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

Overview

Represents a version set inside of an application

General metadata collapse

Attributes inherited from Base

#client, #raw_data

General metadata collapse

Methods inherited from TunesBase

client

Methods inherited from Base

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

Constructor Details

This class inherits a constructor from Spaceship::Base

Instance Attribute Details

#applicationSpaceship::Tunes::Application

Returns A reference to the application the version_set is contained in.

Returns:



13
14
15
# File 'lib/spaceship/tunes/version_set.rb', line 13

def application
  @application
end

#platformString

Returns:



16
17
18
# File 'lib/spaceship/tunes/version_set.rb', line 16

def platform
  @platform
end

#typeString

Returns The type of the version set. So far only APP.

Returns:

  • (String)

    The type of the version set. So far only APP



10
11
12
# File 'lib/spaceship/tunes/version_set.rb', line 10

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



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

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