Class: Radar::API::LineSeries
- Inherits:
-
Object
- Object
- Radar::API::LineSeries
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/radar/api/radar_types.rb
Constant Summary collapse
- NAME =
1- POINTS =
2- TYPE =
3- FIELDS =
{ NAME => {:type => ::Thrift::Types::STRING, :name => 'name'}, POINTS => {:type => ::Thrift::Types::LIST, :name => 'points', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Radar::API::Point}}, TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :default => 0, :enum_class => ::Radar::API::LineSeriesType} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
216 |
# File 'lib/radar/api/radar_types.rb', line 216 def struct_fields; FIELDS; end |
#validate ⇒ Object
218 219 220 221 222 |
# File 'lib/radar/api/radar_types.rb', line 218 def validate unless @type.nil? || ::Radar::API::LineSeriesType::VALID_VALUES.include?(@type) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!') end end |