Class: PayPal::Invoice::Search
- Defined in:
- lib/paypal/invoice/search.rb
Instance Attribute Summary collapse
-
#merchant_email ⇒ Object
Returns the value of attribute merchant_email.
-
#page ⇒ Object
Returns the value of attribute page.
-
#page_size ⇒ Object
Returns the value of attribute page_size.
-
#parameters ⇒ Object
Returns the value of attribute parameters.
-
#response ⇒ Object
Returns the value of attribute response.
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
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_email ⇒ Object
Returns the value of attribute merchant_email.
4 5 6 |
# File 'lib/paypal/invoice/search.rb', line 4 def merchant_email @merchant_email end |
#page ⇒ Object
Returns the value of attribute page.
6 7 8 |
# File 'lib/paypal/invoice/search.rb', line 6 def page @page end |
#page_size ⇒ Object
Returns the value of attribute page_size.
7 8 9 |
# File 'lib/paypal/invoice/search.rb', line 7 def page_size @page_size end |
#parameters ⇒ Object
Returns the value of attribute parameters.
5 6 7 |
# File 'lib/paypal/invoice/search.rb', line 5 def parameters @parameters end |
#response ⇒ Object
Returns the value of attribute response.
9 10 11 |
# File 'lib/paypal/invoice/search.rb', line 9 def response @response end |
Instance Method Details
#search ⇒ Object
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 |