Class: FrOData::Properties::Single

Inherits:
Float show all
Defined in:
lib/frodata/properties/float.rb

Overview

Defines the Single (Float) FrOData type.

Instance Attribute Summary

Attributes inherited from FrOData::Property

#name, #options, #value

Instance Method Summary collapse

Methods inherited from Float

#value, #value=

Methods inherited from FrOData::Property

#==, #allows_nil?, #concurrency_mode, from_xml, #initialize, #json_value, #strict?, #to_xml, #xml_value

Constructor Details

This class inherits a constructor from FrOData::Property

Instance Method Details

#typeObject

The FrOData type name



46
47
48
# File 'lib/frodata/properties/float.rb', line 46

def type
  'Edm.Single'
end

#url_valueString

Value to be used in URLs.

Returns:



52
53
54
# File 'lib/frodata/properties/float.rb', line 52

def url_value
  "#{value}F"
end