Sha256: 1442c41726f98137082c44de6b9412bc152b1fb580a0f8589b9c069d8af0933d

Contents?: true

Size: 208 Bytes

Versions: 5

Compression:

Stored size: 208 Bytes

Contents

require "flex_commerce_api/api_base"

module FlexCommerce
  class MarkdownPrice < FlexCommerceApi::ApiBase
    belongs_to :variant

    def active?
      Time.now.between?(start_at, end_at)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
flex_commerce_api-0.8.3 app/models/markdown_price.rb
flex_commerce_api-0.8.2 app/models/markdown_price.rb
flex_commerce_api-0.8.1 app/models/markdown_price.rb
flex_commerce_api-0.7 app/models/markdown_price.rb
flex_commerce_api-0.6.57 app/models/markdown_price.rb