Class: ArrowFormat::IntervalType
- Inherits:
-
TemporalType
- Object
- Type
- PrimitiveType
- TemporalType
- ArrowFormat::IntervalType
- Defined in:
- lib/arrow-format/type.rb
Direct Known Subclasses
DayTimeIntervalType, MonthDayNanoIntervalType, YearMonthIntervalType
Instance Attribute Summary collapse
-
#unit ⇒ Object
readonly
Returns the value of attribute unit.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(unit) ⇒ IntervalType
constructor
A new instance of IntervalType.
- #to_flatbuffers ⇒ Object
Methods inherited from Type
Constructor Details
#initialize(unit) ⇒ IntervalType
Returns a new instance of IntervalType.
509 510 511 512 |
# File 'lib/arrow-format/type.rb', line 509 def initialize(unit) super() @unit = unit end |
Instance Attribute Details
#unit ⇒ Object (readonly)
Returns the value of attribute unit.
508 509 510 |
# File 'lib/arrow-format/type.rb', line 508 def unit @unit end |
Class Method Details
.singleton ⇒ Object
503 504 505 |
# File 'lib/arrow-format/type.rb', line 503 def singleton @singleton ||= new end |