Sha256: 8bd23f5204b470b00fe4cfabfb66f1521ac575b19be332d151a6124755ad08ab

Contents?: true

Size: 309 Bytes

Versions: 6

Compression:

Stored size: 309 Bytes

Contents

module OData4
  module Properties
    # Defines the GUID OData4 type.
    class Guid < OData4::Property
      # The OData4 type name
      def type
        'Edm.Guid'
      end

      # Value to be used in URLs.
      # @return [String]
      def url_value
        "guid'#{value}'"
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
odata4-0.9.1 lib/odata4/properties/guid.rb
odata4-0.9.0 lib/odata4/properties/guid.rb
odata4-0.8.2 lib/odata4/properties/guid.rb
odata4-0.8.1 lib/odata4/properties/guid.rb
odata4-0.8.0 lib/odata4/properties/guid.rb
odata4-0.7.0 lib/odata4/properties/guid.rb