Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ignacio-chiazzo/83898d53528a502e217463bbb3dd5c91 to your computer and use it in GitHub Desktop.
Save ignacio-chiazzo/83898d53528a502e217463bbb3dd5c91 to your computer and use it in GitHub Desktop.
module PricingEngine
class PricingRepositoryInterface
def variants_by_ids(ids)
raise NotImplemented
end
def variants_by_titles(titles)
raise NotImplemented
end
end
module Schema
class Variant
attr_accessor :title
attr_accessor :price
def initialize(title:, price:)
@title = title
@price = price
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment