Last active
March 14, 2021 00:20
-
-
Save ignacio-chiazzo/83898d53528a502e217463bbb3dd5c91 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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