Class: Cb::Criteria::User::Delete
- Inherits:
-
Object
- Object
- Cb::Criteria::User::Delete
- Defined in:
- lib/cb/criteria/user/delete.rb
Instance Attribute Summary collapse
-
#external_id ⇒ Object
Returns the value of attribute external_id.
-
#password ⇒ Object
Returns the value of attribute password.
-
#test ⇒ Object
Returns the value of attribute test.
Instance Method Summary collapse
-
#initialize(args = {}) ⇒ Delete
constructor
A new instance of Delete.
- #to_xml ⇒ Object
Constructor Details
#initialize(args = {}) ⇒ Delete
Returns a new instance of Delete.
10 11 12 13 14 |
# File 'lib/cb/criteria/user/delete.rb', line 10 def initialize(args = {}) @external_id = args[:external_id] || '' @password = args[:password] || '' @test = args[:test] || 'false' end |
Instance Attribute Details
#external_id ⇒ Object
Returns the value of attribute external_id.
8 9 10 |
# File 'lib/cb/criteria/user/delete.rb', line 8 def external_id @external_id end |
#password ⇒ Object
Returns the value of attribute password.
8 9 10 |
# File 'lib/cb/criteria/user/delete.rb', line 8 def password @password end |
#test ⇒ Object
Returns the value of attribute test.
8 9 10 |
# File 'lib/cb/criteria/user/delete.rb', line 8 def test @test end |
Instance Method Details
#to_xml ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'lib/cb/criteria/user/delete.rb', line 16 def to_xml Nokogiri::XML::Builder.new do |xml| xml.Request { xml.DeveloperKey Cb.configuration.dev_key xml.Password password xml.ExternalID external_id xml.Test self.test # ruby has a builtin called test, confusion occurs :( } end.to_xml end |