Sha256: 68b671ad9c216262b99c41f63a515b386679a6698e27792b2ec37423fbdbb4f3

Contents?: true

Size: 369 Bytes

Versions: 14

Compression:

Stored size: 369 Bytes

Contents

module Almodovar
  class ResourcePresenter
    class Serializer
      
      attr_reader :resource, :options
      
      def initialize(resource, options = {})
        @resource = resource
        @options  = options
      end

      def options_for_link
        options.merge(:dont_expand => Array(options[:dont_expand]) << resource.url)
      end

    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
almodovar-server-0.2.0 lib/almodovar-server/resource_presenter/serializer.rb
almodovar-server-0.1.2 lib/almodovar-server/resource_presenter/serializer.rb
almodovar-server-0.1.1 lib/almodovar-server/resource_presenter/serializer.rb
almodovar-server-0.1.0 lib/almodovar-server/resource_presenter/serializer.rb
almodovar-0.9.8 lib/almodovar/resource_presenter/serializer.rb
almodovar-0.9.7 lib/almodovar/resource_presenter/serializer.rb
almodovar-0.9.6 lib/almodovar/resource_presenter/serializer.rb
almodovar-0.9.5 lib/almodovar/resource_presenter/serializer.rb
almodovar-0.9.4 lib/almodovar/resource_presenter/serializer.rb
almodovar-0.9.2 lib/almodovar/resource_presenter/serializer.rb
almodovar-0.9.3 lib/almodovar/resource_presenter/serializer.rb
almodovar-0.9.1 lib/almodovar/resource_presenter/serializer.rb
almodovar-0.9.0 lib/almodovar/resource_presenter/serializer.rb
almodovar-0.8.0 lib/almodovar/resource_presenter/serializer.rb