Class: Safrano::Edm::Edm::Binary

Inherits:
String
  • Object
show all
Extended by:
OutputClassMethods
Defined in:
lib/odata/edm/primitive_types.rb

Overview

Binary is a String with the BINARY encoding

Class Method Summary collapse

Methods included from OutputClassMethods

odata_collection, odata_value, type_name

Class Method Details

.convert_from_urlparam(val) ⇒ Object



162
163
164
165
# File 'lib/odata/edm/primitive_types.rb', line 162

def self.convert_from_urlparam(val)
  # TODO: this should use base64
  Contract.valid(val.dup.force_encoding('BINARY'))
end