Class: OdataDuty::EdmInt64
Constant Summary collapse
- OAS_TYPE =
{ 'type' => 'integer', 'format' => 'int64' }.freeze
Class Method Summary collapse
Methods inherited from EdmBase
Class Method Details
.property_type ⇒ Object
11 12 13 |
# File 'lib/odata_duty/edms.rb', line 11 def self.property_type 'Edm.Int64' end |
.to_oas2(is_collection:) ⇒ Object
17 18 19 20 21 |
# File 'lib/odata_duty/edms.rb', line 17 def self.to_oas2(is_collection:) return { 'type' => 'array', 'items' => OAS_TYPE } if is_collection OAS_TYPE end |
.to_value(object, _context) ⇒ Object
23 24 25 26 27 |
# File 'lib/odata_duty/edms.rb', line 23 def self.to_value(object, _context) Integer(object) rescue StandardError => e raise InvalidValue, e end |