Class: Killbill::Plugin::Model::BroadcastMetadata

Inherits:
Object
  • Object
show all
Defined in:
lib/killbill/gen/plugin-api/broadcast_metadata.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBroadcastMetadata

Returns a new instance of BroadcastMetadata.



37
38
# File 'lib/killbill/gen/plugin-api/broadcast_metadata.rb', line 37

def initialize()
end

Instance Attribute Details

#command_typeObject

Returns the value of attribute command_type.



35
36
37
# File 'lib/killbill/gen/plugin-api/broadcast_metadata.rb', line 35

def command_type
  @command_type
end

#event_jsonObject

Returns the value of attribute event_json.



35
36
37
# File 'lib/killbill/gen/plugin-api/broadcast_metadata.rb', line 35

def event_json
  @event_json
end

#serviceObject

Returns the value of attribute service.



35
36
37
# File 'lib/killbill/gen/plugin-api/broadcast_metadata.rb', line 35

def service
  @service
end

Instance Method Details

#to_javaObject



40
41
42
43
44
45
46
47
48
49
50
# File 'lib/killbill/gen/plugin-api/broadcast_metadata.rb', line 40

def to_java()
  # conversion for service [type = java.lang.String]
  @service = @service.to_s unless @service.nil?

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

  # conversion for event_json [type = java.lang.String]
  @event_json = @event_json.to_s unless @event_json.nil?
  Java::org.killbill.billing.notification.plugin.api.BroadcastMetadata.new(@service, @command_type, @event_json)
end

#to_ruby(j_obj) ⇒ Object



52
53
54
55
56
57
58
59
60
61
62
# File 'lib/killbill/gen/plugin-api/broadcast_metadata.rb', line 52

def to_ruby(j_obj)
  # conversion for service [type = java.lang.String]
  @service = j_obj.service

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

  # conversion for event_json [type = java.lang.String]
  @event_json = j_obj.event_json
  self
end