This repository has been archived on 2018-06-04. You can view files and clone it, but cannot push or open issues/pull-requests.
thrift-helloworld/ruby/helloworld/helloworld_types.rb

26 lines
496 B
Ruby

#
# Autogenerated by Thrift Compiler (0.8.0)
#
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
#
class Message
include ::Thrift::Struct, ::Thrift::Struct_Union
NAME = 1
LANG = 2
FIELDS = {
NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
LANG => {:type => ::Thrift::Types::STRING, :name => 'lang', :default => %q"en", :optional => true}
}
def struct_fields; FIELDS; end
def validate
end
::Thrift::Struct.generate_accessors self
end