Class: OData::StreamType

Inherits:
PrimitiveType show all
Defined in:
lib/odata/types/primitive_types/stream_type.rb

Instance Method Summary collapse

Methods inherited from Type

#collection?, #initialize

Constructor Details

This class inherits a constructor from OData::Type

Instance Method Details

#coerce(value) ⇒ Object

Raises:

  • (RuntimeError)

7
8
9
# File 'lib/odata/types/primitive_types/stream_type.rb', line 7

def coerce(value)
  raise RuntimeError
end

#nameObject


11
12
13
# File 'lib/odata/types/primitive_types/stream_type.rb', line 11

def name
  "Edm.Stream"
end

#valid_value?(value) ⇒ Boolean

Returns:

  • (Boolean)

3
4
5
# File 'lib/odata/types/primitive_types/stream_type.rb', line 3

def valid_value?(value)
  true
end