Class: PayPal::Invoice::Search

Inherits:
Base
  • Object
show all
Defined in:
lib/paypal/invoice/search.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#request_envelope

Instance Method Summary collapse

Methods inherited from Base

#request

Methods included from Common::Base

#after_initialize, #build_datetime, #build_value, #camelize, #hash_keys, #initialize, #request, #to_hash, #to_json, #underscore

Instance Attribute Details

#merchant_emailObject

Returns the value of attribute merchant_email.



4
5
6
# File 'lib/paypal/invoice/search.rb', line 4

def merchant_email
  @merchant_email
end

#pageObject

Returns the value of attribute page.



6
7
8
# File 'lib/paypal/invoice/search.rb', line 6

def page
  @page
end

#page_sizeObject

Returns the value of attribute page_size.



7
8
9
# File 'lib/paypal/invoice/search.rb', line 7

def page_size
  @page_size
end

#parametersObject

Returns the value of attribute parameters.



5
6
7
# File 'lib/paypal/invoice/search.rb', line 5

def parameters
  @parameters
end

#responseObject

Returns the value of attribute response.



9
10
11
# File 'lib/paypal/invoice/search.rb', line 9

def response
  @response
end

Instance Method Details

#searchObject



15
16
17
# File 'lib/paypal/invoice/search.rb', line 15

def search
  self.response = Response.process(:search, request.run(:search, self.to_hash))
end

#set_parameters(value) ⇒ Object



11
12
13
# File 'lib/paypal/invoice/search.rb', line 11

def set_parameters(value)
  self.parameters = build_value(SearchParameters, value)
end