Sha256: fe1b388703949f471aaa367aa51e35d76cfac8164ab267d60a4325055f2a4a56

Contents?: true

Size: 466 Bytes

Versions: 2

Compression:

Stored size: 466 Bytes

Contents

module Locomotive::Coal
  module Resources

    class Pages < Base

      def index(locale)
        get(resources_name, _locale: locale).map do |attributes|
          Resource.new(attributes)
        end
      end

      alias :all :index

      def fullpaths(locale)
        get("#{resources_name}/fullpaths", _locale: locale).map do |attributes|
          Resource.new(attributes)
        end
      end

      alias :update :update_with_locale

    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
locomotivecms_coal-1.0.0.pre.alpha.3 lib/locomotive/coal/resources/pages.rb
locomotivecms_coal-1.0.0.pre.alpha.2 lib/locomotive/coal/resources/pages.rb