Class: Radar::API::CashFlow
- Inherits:
-
Object
- Object
- Radar::API::CashFlow
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/radar/api/radar_types.rb
Constant Summary collapse
- DATE =
1- VALUE =
2- BALANCE =
3- TYPE =
4- FIELDS =
{ DATE => {:type => ::Thrift::Types::I32, :name => 'date'}, VALUE => {:type => ::Thrift::Types::DOUBLE, :name => 'value'}, BALANCE => {:type => ::Thrift::Types::DOUBLE, :name => 'balance'}, TYPE => {:type => ::Thrift::Types::I32, :name => 'type', :enum_class => ::Radar::API::CashFlowType} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
671 |
# File 'lib/radar/api/radar_types.rb', line 671 def struct_fields; FIELDS; end |
#validate ⇒ Object
673 674 675 676 677 |
# File 'lib/radar/api/radar_types.rb', line 673 def validate unless @type.nil? || ::Radar::API::CashFlowType::VALID_VALUES.include?(@type) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field type!') end end |