Sha256: b9e8ac15f16810a055929864cbdd2527adf62eaf55eb17faa27f4f946c28c98d

Contents?: true

Size: 410 Bytes

Versions: 7

Compression:

Stored size: 410 Bytes

Contents

# frozen_string_literal: true

module Excon
  module HyperMedia
    class ResourceObject
      # Links
      #
      # Represents a collection of links part of a resource.
      #
      class Links
        include Collection

        private

        def property(value)
          value.respond_to?(:to_ary) ? value.map { |v| LinkObject.new(v) } : LinkObject.new(value)
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
excon-hypermedia-0.7.0 lib/excon/hypermedia/resource_object/links.rb
excon-hypermedia-0.6.0 lib/excon/hypermedia/resource_object/links.rb
excon-hypermedia-0.5.3 lib/excon/hypermedia/resource_object/links.rb
excon-hypermedia-0.5.2 lib/excon/hypermedia/resource_object/links.rb
excon-hypermedia-0.5.1 lib/excon/hypermedia/resource_object/links.rb
excon-hypermedia-0.5.0 lib/excon/hypermedia/resource_object/links.rb
excon-hypermedia-0.4.3 lib/excon/hypermedia/resource_object/links.rb