Class: Killbill::Plugin::Model::EmailNotification

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeEmailNotification

Returns a new instance of EmailNotification.



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

def initialize()
end

Instance Attribute Details

#is_htmlObject

Returns the value of attribute is_html.



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

def is_html
  @is_html
end

#subjectObject

Returns the value of attribute subject.



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

def subject
  @subject
end

#template_nameObject

Returns the value of attribute template_name.



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

def template_name
  @template_name
end

Instance Method Details

#to_javaObject



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

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

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

  # conversion for is_html [type = java.lang.Boolean]
  @is_html = @is_html.nil? ? java.lang.Boolean.new(false) : java.lang.Boolean.new(@is_html)
  self
end

#to_ruby(j_obj) ⇒ Object



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

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

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

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