Class: Tarpon::Entity::Offering
- Inherits:
-
Object
- Object
- Tarpon::Entity::Offering
- Defined in:
- lib/tarpon/entity/offering.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
-
#packages ⇒ Object
readonly
Returns the value of attribute packages.
Instance Method Summary collapse
-
#initialize(identifier:, description:, packages:) ⇒ Offering
constructor
A new instance of Offering.
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
#description ⇒ Object (readonly)
Returns the value of attribute description.
7 8 9 |
# File 'lib/tarpon/entity/offering.rb', line 7 def description @description end |
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
7 8 9 |
# File 'lib/tarpon/entity/offering.rb', line 7 def identifier @identifier end |
#packages ⇒ Object (readonly)
Returns the value of attribute packages.
7 8 9 |
# File 'lib/tarpon/entity/offering.rb', line 7 def packages @packages end |