Class: Xcodeproj::XCScheme::SendEmailActionContent
- Inherits:
-
XMLElementWrapper
- Object
- XMLElementWrapper
- Xcodeproj::XCScheme::SendEmailActionContent
- Defined in:
- lib/xcodeproj/scheme/send_email_action_content.rb
Overview
This class wraps a ‘ActionContent’ node of type ‘Xcode.IDEStandardExecutionActionsCore.ExecutionActionType.SendEmailAction’ of a .xcscheme XML file
Instance Attribute Summary
Attributes inherited from XMLElementWrapper
Instance Method Summary collapse
-
#attach_log_to_email? ⇒ Bool
Whether or not this action should attach log to email.
-
#email_body ⇒ String
The email body of this ActionContent.
- #email_body=(value) ⇒ Object
-
#email_recipient ⇒ String
The email recipient of this ActionContent.
- #email_recipient=(value) ⇒ Object
-
#email_subject ⇒ String
The email subject of this ActionContent.
- #email_subject=(value) ⇒ Object
-
#initialize(node = nil) ⇒ SendEmailActionContent
constructor
A new instance of SendEmailActionContent.
-
#title ⇒ String
The title of this ActionContent.
- #title=(value) ⇒ Object
Methods inherited from XMLElementWrapper
Constructor Details
#initialize(node = nil) ⇒ SendEmailActionContent
Returns a new instance of SendEmailActionContent.
11 12 13 14 15 16 17 18 |
# 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 |
Instance Method Details
#attach_log_to_email? ⇒ Bool
Returns Whether or not this action should attach log to email.
23 24 25 |
# 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 ⇒ String
Returns The email body of this ActionContent.
72 73 74 |
# File 'lib/xcodeproj/scheme/send_email_action_content.rb', line 72 def email_body @xml_element.attributes['emailBody'] end |
#email_body=(value) ⇒ Object
79 80 81 |
# File 'lib/xcodeproj/scheme/send_email_action_content.rb', line 79 def email_body=(value) @xml_element.attributes['emailBody'] = value end |
#email_recipient ⇒ String
Returns The email recipient of this ActionContent.
44 45 46 |
# File 'lib/xcodeproj/scheme/send_email_action_content.rb', line 44 def email_recipient @xml_element.attributes['emailRecipient'] end |
#email_recipient=(value) ⇒ Object
51 52 53 |
# File 'lib/xcodeproj/scheme/send_email_action_content.rb', line 51 def email_recipient=(value) @xml_element.attributes['emailRecipient'] = value end |
#email_subject ⇒ String
Returns The email subject of this ActionContent.
58 59 60 |
# File 'lib/xcodeproj/scheme/send_email_action_content.rb', line 58 def email_subject @xml_element.attributes['emailSubject'] end |
#email_subject=(value) ⇒ Object
65 66 67 |
# File 'lib/xcodeproj/scheme/send_email_action_content.rb', line 65 def email_subject=(value) @xml_element.attributes['emailSubject'] = value end |
#title ⇒ String
Returns The title of this ActionContent.
30 31 32 |
# File 'lib/xcodeproj/scheme/send_email_action_content.rb', line 30 def title @xml_element.attributes['title'] end |
#title=(value) ⇒ Object
37 38 39 |
# File 'lib/xcodeproj/scheme/send_email_action_content.rb', line 37 def title=(value) @xml_element.attributes['title'] = value end |