Sha256: 788cc064a3cd36187381f8ad3cf1fb4f6330a777659ef21cbe6d571e9d6ba805

Contents?: true

Size: 1.43 KB

Versions: 1

Compression:

Stored size: 1.43 KB

Contents

require 'mida_vocabulary/vocabulary'

module Mida
  module SchemaOrg

    autoload :TradeAction, 'mida_vocabulary/vocabularies/schemaorg/tradeaction'
    autoload :Action, 'mida_vocabulary/vocabularies/schemaorg/action'
    autoload :Thing, 'mida_vocabulary/vocabularies/schemaorg/thing'
    autoload :Organization, 'mida_vocabulary/vocabularies/schemaorg/organization'
    autoload :Person, 'mida_vocabulary/vocabularies/schemaorg/person'
    autoload :WarrantyPromise, 'mida_vocabulary/vocabularies/schemaorg/warrantypromise'

    # The act of giving money to a seller in exchange for goods or services rendered. An agent buys an object, product, or service from a seller for a price. Reciprocal of SellAction.
    class BuyAction < Mida::Vocabulary
      itemtype %r{http://schema.org/BuyAction}i
      include_vocabulary Mida::SchemaOrg::TradeAction
      include_vocabulary Mida::SchemaOrg::Action
      include_vocabulary Mida::SchemaOrg::Thing

      # An entity which offers (sells / leases / lends / loans) the services / goods.  A seller may also be a provider. Supercedes merchant, vendor.
      has_many 'seller' do
        extract Mida::SchemaOrg::Organization
        extract Mida::SchemaOrg::Person
        extract Mida::DataType::Text
      end

      # The warranty promise(s) included in the offer.
      has_many 'warrantyPromise' do
        extract Mida::SchemaOrg::WarrantyPromise
        extract Mida::DataType::Text
      end
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mida_vocabulary-0.2.2 lib/mida_vocabulary/vocabularies/schemaorg/buyaction.rb