class DiscountNetwork::Provider
Public Instance Methods
find_by_slug(slug)
click to toggle source
# File lib/discountnetwork/provider.rb, line 9 def find_by_slug(slug) DiscountNetwork.get_resource( ["providers", slug].join("/"), ).provider end
where(type:)
click to toggle source
# File lib/discountnetwork/provider.rb, line 3 def where(type:) DiscountNetwork.get_resource( "providers", type: type ).providers end