Class: Killbill::Plugin::Model::PluginNodeCommandMetadata
- Defined in:
- lib/killbill/gen/api/plugin_node_command_metadata.rb
Instance Attribute Summary collapse
-
#plugin_key ⇒ Object
Returns the value of attribute plugin_key.
-
#plugin_name ⇒ Object
Returns the value of attribute plugin_name.
-
#plugin_version ⇒ Object
Returns the value of attribute plugin_version.
-
#properties ⇒ Object
Returns the value of attribute properties.
Instance Method Summary collapse
-
#initialize ⇒ PluginNodeCommandMetadata
constructor
A new instance of PluginNodeCommandMetadata.
- #to_java ⇒ Object
- #to_ruby(j_obj) ⇒ Object
Constructor Details
#initialize ⇒ PluginNodeCommandMetadata
Returns a new instance of PluginNodeCommandMetadata.
37 38 |
# File 'lib/killbill/gen/api/plugin_node_command_metadata.rb', line 37 def initialize() end |
Instance Attribute Details
#plugin_key ⇒ Object
Returns the value of attribute plugin_key.
35 36 37 |
# File 'lib/killbill/gen/api/plugin_node_command_metadata.rb', line 35 def plugin_key @plugin_key end |
#plugin_name ⇒ Object
Returns the value of attribute plugin_name.
35 36 37 |
# File 'lib/killbill/gen/api/plugin_node_command_metadata.rb', line 35 def plugin_name @plugin_name end |
#plugin_version ⇒ Object
Returns the value of attribute plugin_version.
35 36 37 |
# File 'lib/killbill/gen/api/plugin_node_command_metadata.rb', line 35 def plugin_version @plugin_version end |
#properties ⇒ Object
Returns the value of attribute properties.
35 36 37 |
# File 'lib/killbill/gen/api/plugin_node_command_metadata.rb', line 35 def properties @properties end |
Instance Method Details
#to_java ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
# File 'lib/killbill/gen/api/plugin_node_command_metadata.rb', line 40 def to_java() # conversion for properties [type = java.util.List] tmp = java.util.ArrayList.new (@properties || []).each do |m| # conversion for m [type = org.killbill.billing.util.nodes.NodeCommandProperty] m = m.to_java unless m.nil? tmp.add(m) end @properties = tmp # conversion for plugin_key [type = java.lang.String] @plugin_key = @plugin_key.to_s unless @plugin_key.nil? # conversion for plugin_name [type = java.lang.String] @plugin_name = @plugin_name.to_s unless @plugin_name.nil? # conversion for plugin_version [type = java.lang.String] @plugin_version = @plugin_version.to_s unless @plugin_version.nil? Java::org.killbill.billing.util.nodes.PluginNodeCommandMetadata.new(@properties, @plugin_key, @plugin_name, @plugin_version) end |
#to_ruby(j_obj) ⇒ Object
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 |
# File 'lib/killbill/gen/api/plugin_node_command_metadata.rb', line 61 def to_ruby(j_obj) # conversion for properties [type = java.util.List] @properties = j_obj.properties tmp = [] (@properties || []).each do |m| # conversion for m [type = org.killbill.billing.util.nodes.NodeCommandProperty] m = Killbill::Plugin::Model::NodeCommandProperty.new.to_ruby(m) unless m.nil? tmp << m end @properties = tmp # conversion for plugin_key [type = java.lang.String] @plugin_key = j_obj.plugin_key # conversion for plugin_name [type = java.lang.String] @plugin_name = j_obj.plugin_name # conversion for plugin_version [type = java.lang.String] @plugin_version = j_obj.plugin_version self end |