Class: ConnectorKit::App

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

Overview

Simple model class for representing Apps

Instance Attribute Summary collapse

Attributes inherited from Model

#id

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ App

Returns a new instance of App.



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

def initialize(options)
  super(options)

  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.



6
7
8
# File 'lib/connector_kit/models/app.rb', line 6

def bundle_id
  @bundle_id
end

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/connector_kit/models/app.rb', line 6

def name
  @name
end

#skuObject (readonly)

Returns the value of attribute sku.



6
7
8
# File 'lib/connector_kit/models/app.rb', line 6

def sku
  @sku
end