class Tarpon::Entity::Offerings
Attributes
current_offering_id[R]
offerings[R]
Public Class Methods
new(current_offering_id:, offerings:, **)
click to toggle source
# File lib/tarpon/entity/offerings.rb, line 12 def initialize(current_offering_id:, offerings:, **) @current_offering_id = current_offering_id @offerings = offerings.each_with_object({}) do |offering, map| map[offering[:identifier].to_sym] = Tarpon::Entity::Offering.new(offering) end end
Public Instance Methods
[](identifier)
click to toggle source
# File lib/tarpon/entity/offerings.rb, line 23 def [](identifier) @offerings[identifier.to_sym] end
each() { |o| ... }
click to toggle source
# File lib/tarpon/entity/offerings.rb, line 19 def each @offerings.each { |o| yield o } end