class Xcodeproj::XCScheme::SendEmailActionContent

This class wraps a ‘ActionContent’ node of type ‘Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.SendEmailAction’ of a .xcscheme XML file

Public Class Methods

new(node = nil) click to toggle source

@param [REXML::Element] node

The 'ActionContent' XML node that this object will wrap.
If nil, will create a default XML node to use.
# File lib/xcodeproj/scheme/send_email_action_content.rb, line 11
def initialize(node = nil)
  create_xml_element_with_fallback(node, 'ActionContent') do
    self.title = 'Send Email'
    # For some reason this is not visible in Xcode's UI and it's always set to 'NO'
    # couldn't find much documentation on it so it might be safer to keep it read only
    @xml_element.attributes['attachLogToEmail'] = 'NO'
  end
end

Public Instance Methods

attach_log_to_email?() click to toggle source

@return [Bool]

Whether or not this action should attach log to email
# File lib/xcodeproj/scheme/send_email_action_content.rb, line 23
def attach_log_to_email?
  string_to_bool(@xml_element.attributes['attachLogToEmail'])
end
email_body() click to toggle source

@return [String]

The email body of this ActionContent
# File lib/xcodeproj/scheme/send_email_action_content.rb, line 72
def email_body
  @xml_element.attributes['emailBody']
end
email_body=(value) click to toggle source

@param [String] value

Set the email body of this ActionContent
# File lib/xcodeproj/scheme/send_email_action_content.rb, line 79
def email_body=(value)
  @xml_element.attributes['emailBody'] = value
end
email_recipient() click to toggle source

@return [String]

The email recipient of this ActionContent
# File lib/xcodeproj/scheme/send_email_action_content.rb, line 44
def email_recipient
  @xml_element.attributes['emailRecipient']
end
email_recipient=(value) click to toggle source

@param [String] value

Set the email recipient of this ActionContent
# File lib/xcodeproj/scheme/send_email_action_content.rb, line 51
def email_recipient=(value)
  @xml_element.attributes['emailRecipient'] = value
end
email_subject() click to toggle source

@return [String]

The email subject of this ActionContent
# File lib/xcodeproj/scheme/send_email_action_content.rb, line 58
def email_subject
  @xml_element.attributes['emailSubject']
end
email_subject=(value) click to toggle source

@param [String] value

Set the email subject of this ActionContent
# File lib/xcodeproj/scheme/send_email_action_content.rb, line 65
def email_subject=(value)
  @xml_element.attributes['emailSubject'] = value
end
title() click to toggle source

@return [String]

The title of this ActionContent
# File lib/xcodeproj/scheme/send_email_action_content.rb, line 30
def title
  @xml_element.attributes['title']
end
title=(value) click to toggle source

@param [String] value

Set the title of this ActionContent
# File lib/xcodeproj/scheme/send_email_action_content.rb, line 37
def title=(value)
  @xml_element.attributes['title'] = value
end