Class: OData::Type

Inherits:
Object
  • Object
show all
Defined in:
lib/odata/type.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Type


5
6
7
# File 'lib/odata/type.rb', line 5

def initialize(options = {})
  @name = options[:name]
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name


3
4
5
# File 'lib/odata/type.rb', line 3

def name
  @name
end

Instance Method Details

#coerce(value) ⇒ Object


9
10
11
# File 'lib/odata/type.rb', line 9

def coerce(value)
  value
end

#collection?Boolean


13
14
15
# File 'lib/odata/type.rb', line 13

def collection?
  false
end