Class: Tarpon::Entity::Offering

Inherits:
Object
  • Object
show all
Defined in:
lib/tarpon/entity/offering.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(identifier:, description:, packages:) ⇒ Offering

Returns a new instance of Offering.



9
10
11
12
13
14
15
# File 'lib/tarpon/entity/offering.rb', line 9

def initialize(identifier:, description:, packages:, **)
  @identifier = identifier
  @description = description
  @packages = packages.map do |package|
    Package.new(package[:identifier], package[:platform_product_identifier])
  end
end

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description.



7
8
9
# File 'lib/tarpon/entity/offering.rb', line 7

def description
  @description
end

#identifierObject (readonly)

Returns the value of attribute identifier.



7
8
9
# File 'lib/tarpon/entity/offering.rb', line 7

def identifier
  @identifier
end

#packagesObject (readonly)

Returns the value of attribute packages.



7
8
9
# File 'lib/tarpon/entity/offering.rb', line 7

def packages
  @packages
end