class Thrift::Types::Value::ListValue
Constants
- FIELDS
- NAME
- NAMESPACE
- THRIFT_FIELD_INDEX_VALUES
Public Class Methods
from_array(v)
click to toggle source
# File lib/thrift/types/value.rb 12 def from_array(v) 13 ListValue.new(values: v.map { |vv| Value.from_object(vv) }) 14 end
Public Instance Methods
struct_fields()
click to toggle source
# File lib/thrift/types/value_types.rb 56 def struct_fields; FIELDS; end
to_array()
click to toggle source
# File lib/thrift/types/value.rb 7 def to_array 8 values.map(&:to_object) 9 end
validate()
click to toggle source
# File lib/thrift/types/value_types.rb 58 def validate 59 raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field values is unset!') unless @values 60 end