Class: Kusto::Rest::DataFrame
- Inherits:
-
Object
- Object
- Kusto::Rest::DataFrame
show all
- Defined in:
- lib/kusto/rest/result/data_frame.rb
Instance Method Summary
collapse
Constructor Details
#initialize(data) ⇒ DataFrame
Returns a new instance of DataFrame.
8
9
10
|
# File 'lib/kusto/rest/result/data_frame.rb', line 8
def initialize(data)
@data = data
end
|
Instance Method Details
#cast(value, type) ⇒ Object
24
25
26
27
28
29
30
31
|
# File 'lib/kusto/rest/result/data_frame.rb', line 24
def cast(value, type)
case type
when "datetime"
value ? DateTime.parse(value) : nil
else
value
end
end
|
#kind ⇒ Object
16
17
18
|
# File 'lib/kusto/rest/result/data_frame.rb', line 16
def kind
@data["TableKind"]
end
|
#name ⇒ Object
20
21
22
|
# File 'lib/kusto/rest/result/data_frame.rb', line 20
def name
@data["TableName"]
end
|
#type ⇒ Object
12
13
14
|
# File 'lib/kusto/rest/result/data_frame.rb', line 12
def type
@data["FrameType"]
end
|