Sha256: 3fe6033b3f5482d4850084c833061d460ca116a1cef40469e95df5db3e06b4d0

Contents?: true

Size: 359 Bytes

Versions: 8

Compression:

Stored size: 359 Bytes

Contents

require 'connector_kit/models/model'

module ConnectorKit
  # Simple model class for representing Apps
  class App < Model
    attr_reader :bundle_id, :name, :sku

    def initialize(options)
      super(options)

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

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
appstore_kit_fork-0.0.5 lib/connector_kit/models/app.rb
appstore_kit_fork-0.0.4 lib/connector_kit/models/app.rb
appstore_kit_fork-0.0.3 lib/connector_kit/models/app.rb
appstore_kit_fork-0.0.2 lib/connector_kit/models/app.rb
appstore_kit_fork-0.0.1 lib/connector_kit/models/app.rb
connector_kit_fork-0.3.2 lib/connector_kit/models/app.rb
connector_kit_fork-0.3.1 lib/connector_kit/models/app.rb
connector_kit-0.3.0 lib/connector_kit/models/app.rb