Class: ConnectorKit::App

Inherits:
Object
  • Object
show all
Defined in:
lib/connector_kit/models/app.rb

Overview

Simple model class for representing Apps in the App Store Connect API

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ App

Returns a new instance of App.



6
7
8
9
10
11
12
13
# File 'lib/connector_kit/models/app.rb', line 6

def initialize(options)
  @id = options['id']

  attrs = options['attributes']
  @bundle_id = attrs['bundleId']
  @name = attrs['name']
  @sku = attrs['sku']
end

Instance Attribute Details

#bundle_idObject (readonly)

Returns the value of attribute bundle_id.



4
5
6
# File 'lib/connector_kit/models/app.rb', line 4

def bundle_id
  @bundle_id
end

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/connector_kit/models/app.rb', line 4

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/connector_kit/models/app.rb', line 4

def name
  @name
end

#skuObject (readonly)

Returns the value of attribute sku.



4
5
6
# File 'lib/connector_kit/models/app.rb', line 4

def sku
  @sku
end