Class: Cb::Models::ApplicationExternal
- Inherits:
-
Object
- Object
- Cb::Models::ApplicationExternal
- Defined in:
- lib/cb/models/implementations/application_external.rb
Constant Summary collapse
- IPATH_LENGTH =
10
Instance Attribute Summary collapse
-
#apply_url ⇒ Object
Returns the value of attribute apply_url.
-
#email ⇒ Object
Returns the value of attribute email.
-
#ipath ⇒ Object
Returns the value of attribute ipath.
-
#is_external_link_apply ⇒ Object
Returns the value of attribute is_external_link_apply.
-
#job_did ⇒ Object
Returns the value of attribute job_did.
-
#site_id ⇒ Object
Returns the value of attribute site_id.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ ApplicationExternal
constructor
A new instance of ApplicationExternal.
- #to_xml ⇒ Object
Constructor Details
#initialize(args = {}) ⇒ ApplicationExternal
8 9 10 11 12 13 14 15 |
# File 'lib/cb/models/implementations/application_external.rb', line 8 def initialize(args = {}) @job_did = args[:job_did] || '' @email = args[:email] || '' @site_id = args[:site_id] || 'cbnsv' @ipath = args[:ipath].slice(0, IPATH_LENGTH) rescue '' @is_external_link_apply = args[:is_external_link_apply] || false @apply_url = '' end |
Instance Attribute Details
#apply_url ⇒ Object
Returns the value of attribute apply_url.
6 7 8 |
# File 'lib/cb/models/implementations/application_external.rb', line 6 def apply_url @apply_url end |
#email ⇒ Object
Returns the value of attribute email.
6 7 8 |
# File 'lib/cb/models/implementations/application_external.rb', line 6 def email @email end |
#ipath ⇒ Object
Returns the value of attribute ipath.
6 7 8 |
# File 'lib/cb/models/implementations/application_external.rb', line 6 def ipath @ipath end |
#is_external_link_apply ⇒ Object
Returns the value of attribute is_external_link_apply.
6 7 8 |
# File 'lib/cb/models/implementations/application_external.rb', line 6 def is_external_link_apply @is_external_link_apply end |
#job_did ⇒ Object
Returns the value of attribute job_did.
6 7 8 |
# File 'lib/cb/models/implementations/application_external.rb', line 6 def job_did @job_did end |
#site_id ⇒ Object
Returns the value of attribute site_id.
6 7 8 |
# File 'lib/cb/models/implementations/application_external.rb', line 6 def site_id @site_id end |
Instance Method Details
#to_xml ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/cb/models/implementations/application_external.rb', line 17 def to_xml ret = "<Request>" ret += "<DeveloperKey>#{Cb.configuration.dev_key}</DeveloperKey>" ret += "<EmailAddress>#{@email}</EmailAddress>" ret += "<JobDID>#{@job_did}</JobDID>" ret += "<SiteID>#{@site_id}</SiteID>" ret += "<IPath>#{@ipath}</IPath>" ret += "<IsExternalLinkApply>#{@is_external_link_apply}</IsExternalLinkApply>" ret += "<HostSite>#{Cb.configuration.host_site}</HostSite>" ret += "</Request>" ret end |