Sha256: e414d3c39d70eb5938045c63abce6c46e50bcc5b10ded484db8f95eeefc4c067

Contents?: true

Size: 419 Bytes

Versions: 96

Compression:

Stored size: 419 Bytes

Contents

module ForestLiana
  class ResourceGetter < BaseGetter
    attr_accessor :record

    def initialize(resource, params)
      @resource = resource
      @params = params
      @collection_name = ForestLiana.name_for(@resource)
      @collection = get_collection(@collection_name)
      compute_includes()
    end

    def perform
      @record = get_resource().eager_load(@includes).find(@params[:id])
    end
  end
end

Version data entries

96 entries across 96 versions & 1 rubygems

Version Path
forest_liana-6.6.3 app/services/forest_liana/resource_getter.rb
forest_liana-7.0.0.beta.4 app/services/forest_liana/resource_getter.rb
forest_liana-7.0.0.beta.3 app/services/forest_liana/resource_getter.rb
forest_liana-6.6.2 app/services/forest_liana/resource_getter.rb
forest_liana-6.6.1 app/services/forest_liana/resource_getter.rb
forest_liana-6.6.0 app/services/forest_liana/resource_getter.rb
forest_liana-6.5.1 app/services/forest_liana/resource_getter.rb
forest_liana-7.0.0.beta.2 app/services/forest_liana/resource_getter.rb
forest_liana-6.5.0 app/services/forest_liana/resource_getter.rb
forest_liana-6.4.1 app/services/forest_liana/resource_getter.rb
forest_liana-7.0.0.beta.1 app/services/forest_liana/resource_getter.rb
forest_liana-6.4.0 app/services/forest_liana/resource_getter.rb
forest_liana-6.3.8 app/services/forest_liana/resource_getter.rb
forest_liana-6.3.7 app/services/forest_liana/resource_getter.rb
forest_liana-6.3.6 app/services/forest_liana/resource_getter.rb
forest_liana-6.3.5 app/services/forest_liana/resource_getter.rb
forest_liana-6.3.4 app/services/forest_liana/resource_getter.rb
forest_liana-6.3.3 app/services/forest_liana/resource_getter.rb
forest_liana-6.3.2 app/services/forest_liana/resource_getter.rb
forest_liana-6.3.1 app/services/forest_liana/resource_getter.rb