Class: Killbill::Plugin::Model::PluginProperty
- Defined in:
- lib/killbill/gen/api/plugin_property.rb
Instance Attribute Summary collapse
-
#is_updatable ⇒ Object
Returns the value of attribute is_updatable.
-
#key ⇒ Object
Returns the value of attribute key.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize ⇒ PluginProperty
constructor
A new instance of PluginProperty.
- #to_java ⇒ Object
- #to_ruby(j_obj) ⇒ Object
Constructor Details
#initialize ⇒ PluginProperty
Returns a new instance of PluginProperty.
37 38 |
# File 'lib/killbill/gen/api/plugin_property.rb', line 37 def initialize() end |
Instance Attribute Details
#is_updatable ⇒ Object
Returns the value of attribute is_updatable.
35 36 37 |
# File 'lib/killbill/gen/api/plugin_property.rb', line 35 def is_updatable @is_updatable end |
#key ⇒ Object
Returns the value of attribute key.
35 36 37 |
# File 'lib/killbill/gen/api/plugin_property.rb', line 35 def key @key end |
#value ⇒ Object
Returns the value of attribute value.
35 36 37 |
# File 'lib/killbill/gen/api/plugin_property.rb', line 35 def value @value end |
Instance Method Details
#to_java ⇒ Object
40 41 42 43 44 45 46 47 48 49 50 |
# File 'lib/killbill/gen/api/plugin_property.rb', line 40 def to_java() # conversion for key [type = java.lang.String] @key = @key.to_s unless @key.nil? # conversion for value [type = java.lang.Object] @value = @value.to_s unless @value.nil? # conversion for is_updatable [type = java.lang.Boolean] @is_updatable = @is_updatable.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_updatable) Java::org.killbill.billing.payment.api.PluginProperty.new(@key, @value, @is_updatable) end |
#to_ruby(j_obj) ⇒ Object
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/killbill/gen/api/plugin_property.rb', line 52 def to_ruby(j_obj) # conversion for key [type = java.lang.String] @key = j_obj.key # conversion for value [type = java.lang.Object] @value = j_obj.value # conversion for is_updatable [type = java.lang.Boolean] @is_updatable = j_obj.is_updatable if @is_updatable.nil? @is_updatable = false else tmp_bool = (@is_updatable.java_kind_of? java.lang.Boolean) ? @is_updatable.boolean_value : @is_updatable @is_updatable = tmp_bool ? true : false end self end |