Class: Landslider::WsContactSearch

Inherits:
WsSearch
  • Object
show all
Defined in:
lib/landslider/entities/ws_contact_search.rb

Overview

search criteria for getContacts

Instance Attribute Summary collapse

Attributes inherited from WsSearch

#allow_duplicate_criterion, #first_result_position, #return_deleted_records, #search_criteria, #source_id, #total_results_requested, #updated_on

Instance Method Summary collapse

Methods inherited from WsSearch

#initialize

Constructor Details

This class inherits a constructor from Landslider::WsSearch

Instance Attribute Details

#cell_phone=(value) ⇒ String (writeonly)

Returns:

  • (String)


11
12
13
# File 'lib/landslider/entities/ws_contact_search.rb', line 11

def cell_phone=(value)
  @cell_phone = value
end

#city=(value) ⇒ String (writeonly)

Returns:

  • (String)


8
9
10
# File 'lib/landslider/entities/ws_contact_search.rb', line 8

def city=(value)
  @city = value
end

#company_name=(value) ⇒ String (writeonly)

Returns:

  • (String)


8
9
10
# File 'lib/landslider/entities/ws_contact_search.rb', line 8

def company_name=(value)
  @company_name = value
end

#country=(value) ⇒ String (writeonly)

Returns:

  • (String)


14
15
16
# File 'lib/landslider/entities/ws_contact_search.rb', line 14

def country=(value)
  @country = value
end

#email=(value) ⇒ String (writeonly)

Returns:

  • (String)


8
9
10
# File 'lib/landslider/entities/ws_contact_search.rb', line 8

def email=(value)
  @email = value
end

#first_name=(value) ⇒ String (writeonly)

Returns:

  • (String)


8
9
10
# File 'lib/landslider/entities/ws_contact_search.rb', line 8

def first_name=(value)
  @first_name = value
end

#home_phone=(value) ⇒ String (writeonly)

Returns:

  • (String)


11
12
13
# File 'lib/landslider/entities/ws_contact_search.rb', line 11

def home_phone=(value)
  @home_phone = value
end

#last_name=(value) ⇒ String (writeonly)

Returns:

  • (String)


11
12
13
# File 'lib/landslider/entities/ws_contact_search.rb', line 11

def last_name=(value)
  @last_name = value
end

#middle_initial=(value) ⇒ String (writeonly)

Returns:

  • (String)


11
12
13
# File 'lib/landslider/entities/ws_contact_search.rb', line 11

def middle_initial=(value)
  @middle_initial = value
end

#other_phone=(value) ⇒ String (writeonly)

Returns:

  • (String)


14
15
16
# File 'lib/landslider/entities/ws_contact_search.rb', line 14

def other_phone=(value)
  @other_phone = value
end

#postal_code=(value) ⇒ String (writeonly)

Returns:

  • (String)


14
15
16
# File 'lib/landslider/entities/ws_contact_search.rb', line 14

def postal_code=(value)
  @postal_code = value
end

#state=(value) ⇒ String (writeonly)

Returns:

  • (String)


14
15
16
# File 'lib/landslider/entities/ws_contact_search.rb', line 14

def state=(value)
  @state = value
end

#title=(value) ⇒ String (writeonly)

Returns:

  • (String)


8
9
10
# File 'lib/landslider/entities/ws_contact_search.rb', line 8

def title=(value)
  @title = value
end

#work_phone=(value) ⇒ String (writeonly)

Returns:

  • (String)


11
12
13
# File 'lib/landslider/entities/ws_contact_search.rb', line 11

def work_phone=(value)
  @work_phone = value
end

Instance Method Details

#soapify_for(msg) ⇒ Handsoap::XmlMason::Node

Parameters:

  • msg (Handsoap::XmlMason::Node)

Returns:

  • (Handsoap::XmlMason::Node)


18
19
20
21
22
23
24
# File 'lib/landslider/entities/ws_contact_search.rb', line 18

def soapify_for(msg)
	super(crit)
	crit.add 'firstName', @first_name unless @first_name.nil?
	crit.add 'lastName', @last_name unless @last_name.nil?
	crit.add 'email', @email unless @email.nil?
	crit.add 'state', @state unless @state.nil?
end