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