class HaveAPI::GoClient::Parameters::Typed
Protected Instance Methods
do_resolve()
click to toggle source
# File lib/haveapi/go_client/parameters/typed.rb, line 10 def do_resolve @go_in_type = get_go_type(desc[:type]) @go_out_type = get_go_type(desc[:type]) end
get_go_type(v)
click to toggle source
# File lib/haveapi/go_client/parameters/typed.rb, line 15 def get_go_type(v) case v when 'String', 'Text', 'Datetime' 'string' when 'Integer' 'int64' when 'Float' 'float64' when 'Boolean' 'bool' else fail "unsupported data type '#{v}'" end end