Class: HaveAPI::GoClient::Parameters::Typed

Inherits:
Base
  • Object
show all
Defined in:
lib/haveapi/go_client/parameters/typed.rb

Constant Summary

Constants included from Utils

Utils::GO_KEYWORDS

Instance Attribute Summary

Attributes inherited from Base

#go_in_type, #go_name, #go_out_type, #io, #name, #type

Instance Method Summary collapse

Methods inherited from Base

#<=>, handle, #resolve

Methods included from Utils

#camelize, #go_comment_text, #go_json_tag, #go_module_path, #go_package_name, #go_query_key, #go_string_literal, #safe_file_component

Constructor Details

#initialize(io, name, desc) ⇒ Typed

Returns a new instance of Typed.



9
10
11
12
# File 'lib/haveapi/go_client/parameters/typed.rb', line 9

def initialize(io, name, desc)
  super
  @nullable = desc[:nullable] == true
end

Instance Method Details

#nillable?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/haveapi/go_client/parameters/typed.rb', line 14

def nillable?
  @nullable == true
end