Sha256: a01667a7e4f47d7cff69c4528cb158feb3be781a05d7fca016678b7164591793

Contents?: true

Size: 628 Bytes

Versions: 31

Compression:

Stored size: 628 Bytes

Contents

require 'active_resource'
require 'daengine'
# Represents a generic piece of content for display on an OFI web property
# This model represents the 'human edited' version of website content, final displayed
# pages will be 'value added' with system-sourced data and 'mashed-in' data
#
  class ContentServiceResource < ActiveResource::Base	

    # self.site = Daengine.config[:content_service_url]
    self.prefix = "/litcenter-service/query/"
    self.element_name = "resource"

    def self.find_all 
      ContentServiceResource.find(:all, :params => {:contentQuery => "audienceIds='490,5270';;expired='false'"})
    end
  end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
daengine-0.6.4 app/models/content_service_resource.rb
daengine-0.6.3 app/models/content_service_resource.rb
daengine-0.6.2 app/models/content_service_resource.rb
daengine-0.6.1 app/models/content_service_resource.rb
daengine-0.6 app/models/content_service_resource.rb
daengine-0.5.10 app/models/content_service_resource.rb
daengine-0.5.8 app/models/content_service_resource.rb
daengine-0.5.7 app/models/content_service_resource.rb
daengine-0.5.2 app/models/content_service_resource.rb
daengine-0.5.1 app/models/content_service_resource.rb
daengine-0.5.0 app/models/content_service_resource.rb