Class: Killbill::Plugin::Model::NodeCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/killbill/gen/api/node_command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeNodeCommand

Returns a new instance of NodeCommand.



39
40
# File 'lib/killbill/gen/api/node_command.rb', line 39

def initialize()
end

Instance Attribute Details

#is_system_command_typeObject

Returns the value of attribute is_system_command_type.



37
38
39
# File 'lib/killbill/gen/api/node_command.rb', line 37

def is_system_command_type
  @is_system_command_type
end

#node_command_metadataObject

Returns the value of attribute node_command_metadata.



37
38
39
# File 'lib/killbill/gen/api/node_command.rb', line 37

def 
  @node_command_metadata
end

#node_command_typeObject

Returns the value of attribute node_command_type.



37
38
39
# File 'lib/killbill/gen/api/node_command.rb', line 37

def node_command_type
  @node_command_type
end

Instance Method Details

#to_javaObject



42
43
44
45
46
47
48
49
50
51
52
# File 'lib/killbill/gen/api/node_command.rb', line 42

def to_java()
  # conversion for is_system_command_type [type = boolean]
  @is_system_command_type = @is_system_command_type.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_system_command_type)

  # conversion for node_command_type [type = java.lang.String]
  @node_command_type = @node_command_type.to_s unless @node_command_type.nil?

  # conversion for node_command_metadata [type = org.killbill.billing.util.nodes.NodeCommandMetadata]
  @node_command_metadata = @node_command_metadata.to_java unless @node_command_metadata.nil?
  self
end

#to_ruby(j_obj) ⇒ Object



54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# File 'lib/killbill/gen/api/node_command.rb', line 54

def to_ruby(j_obj)
  # conversion for is_system_command_type [type = boolean]
  @is_system_command_type = j_obj.is_system_command_type
  if @is_system_command_type.nil?
    @is_system_command_type = false
  else
    tmp_bool = (@is_system_command_type.java_kind_of? java.lang.Boolean) ? @is_system_command_type.boolean_value : @is_system_command_type
    @is_system_command_type = tmp_bool ? true : false
  end

  # conversion for node_command_type [type = java.lang.String]
  @node_command_type = j_obj.node_command_type

  # conversion for node_command_metadata [type = org.killbill.billing.util.nodes.NodeCommandMetadata]
  @node_command_metadata = j_obj.
  @node_command_metadata = Killbill::Plugin::Model::NodeCommandMetadata.new.to_ruby(@node_command_metadata) unless @node_command_metadata.nil?
  self
end