Class: Hexspace::TTypeQualifierValue
- Inherits:
-
Thrift::Union
- Object
- Thrift::Union
- Hexspace::TTypeQualifierValue
- Includes:
- Thrift::Struct_Union
- Defined in:
- lib/hexspace/tcli_service_types.rb,
lib/hexspace/tcli_service_types.rb
Constant Summary collapse
- I32VALUE =
1
- STRINGVALUE =
2
- FIELDS =
{ I32VALUE => {:type => ::Thrift::Types::I32, :name => 'i32Value', :optional => true}, STRINGVALUE => {:type => ::Thrift::Types::STRING, :name => 'stringValue', :optional => true} }
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.i32Value(val) ⇒ Object
321 322 323 |
# File 'lib/hexspace/tcli_service_types.rb', line 321 def i32Value(val) TTypeQualifierValue.new(:i32Value, val) end |
.stringValue(val) ⇒ Object
325 326 327 |
# File 'lib/hexspace/tcli_service_types.rb', line 325 def stringValue(val) TTypeQualifierValue.new(:stringValue, val) end |
Instance Method Details
#struct_fields ⇒ Object
338 |
# File 'lib/hexspace/tcli_service_types.rb', line 338 def struct_fields; FIELDS; end |
#validate ⇒ Object
340 341 342 |
# File 'lib/hexspace/tcli_service_types.rb', line 340 def validate raise(StandardError, 'Union fields are not set.') if get_set_field.nil? || get_value.nil? end |