Class: TinyAppstoreConnect::Model::Profile

Inherits:
Object
  • Object
show all
Includes:
TinyAppstoreConnect::Model
Defined in:
lib/tiny_appstore_connect/models/profile.rb

Defined Under Namespace

Modules: ProfileState, ProfileType

Constant Summary collapse

ESSENTIAL_INCLUDES =
[
  'bundleId',
  'certificates',
  'devices'
].join(',')

Instance Attribute Summary collapse

Attributes included from TinyAppstoreConnect::Model

#id, #included, #rate

Instance Method Summary collapse

Methods included from TinyAppstoreConnect::Model

included, #initialize, #update_attributes, #update_include

Instance Attribute Details

#bundle_idObject

include



20
21
22
# File 'lib/tiny_appstore_connect/models/profile.rb', line 20

def bundle_id
  @bundle_id
end

#certificatesObject

Returns the value of attribute certificates.



21
22
23
# File 'lib/tiny_appstore_connect/models/profile.rb', line 21

def certificates
  @certificates
end

#created_dateObject

Returns the value of attribute created_date.



16
17
18
# File 'lib/tiny_appstore_connect/models/profile.rb', line 16

def created_date
  @created_date
end

#devicesObject

Returns the value of attribute devices.



22
23
24
# File 'lib/tiny_appstore_connect/models/profile.rb', line 22

def devices
  @devices
end

#expiration_dateObject

Returns the value of attribute expiration_date.



17
18
19
# File 'lib/tiny_appstore_connect/models/profile.rb', line 17

def expiration_date
  @expiration_date
end

#nameObject

Returns the value of attribute name.



10
11
12
# File 'lib/tiny_appstore_connect/models/profile.rb', line 10

def name
  @name
end

#platformObject

Returns the value of attribute platform.



11
12
13
# File 'lib/tiny_appstore_connect/models/profile.rb', line 11

def platform
  @platform
end

#profile_contentObject

Returns the value of attribute profile_content.



14
15
16
# File 'lib/tiny_appstore_connect/models/profile.rb', line 14

def profile_content
  @profile_content
end

#profile_stateObject

Returns the value of attribute profile_state.



13
14
15
# File 'lib/tiny_appstore_connect/models/profile.rb', line 13

def profile_state
  @profile_state
end

#profile_typeObject

Returns the value of attribute profile_type.



12
13
14
# File 'lib/tiny_appstore_connect/models/profile.rb', line 12

def profile_type
  @profile_type
end

#uuidObject

Returns the value of attribute uuid.



15
16
17
# File 'lib/tiny_appstore_connect/models/profile.rb', line 15

def uuid
  @uuid
end

Instance Method Details

#mobileprovisionObject



52
53
54
55
56
57
58
# File 'lib/tiny_appstore_connect/models/profile.rb', line 52

def mobileprovision
  @mobileprovision ||= -> () {
    require 'cfpropertylist'
    raw = CFPropertyList::List.new(data: striped_profile_content).value
    CFPropertyList.native_types(raw)
  }.call
end