Class: Killbill::Plugin::Model::PluginProperty

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializePluginProperty

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_updatableObject

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

#keyObject

Returns the value of attribute key.



35
36
37
# File 'lib/killbill/gen/api/plugin_property.rb', line 35

def key
  @key
end

#valueObject

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_javaObject



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