Class: Vpsa::Searcher::Base
- Inherits:
-
Object
- Object
- Vpsa::Searcher::Base
- Includes:
- InitFromHash
- Defined in:
- lib/vpsa/searcher/base.rb
Direct Known Subclasses
Administrative::CompanySearcher, Administrative::EntitySearcher, Administrative::ThirdPartySearcher, Commercial::CreditLimitSearcher, Financial::DefaultEntrySearcher, Financial::PaymentConditionSearcher, Financial::ReceiptSearcher, Operational::ClientClassSearcher, Operational::OrderSearcher, Operational::SellerSearcher
Instance Attribute Summary collapse
-
#inicio ⇒ Object
Returns the value of attribute inicio.
-
#quantidade ⇒ Object
Returns the value of attribute quantidade.
Instance Method Summary collapse
Methods included from InitFromHash
Instance Attribute Details
#inicio ⇒ Object
Returns the value of attribute inicio.
8 9 10 |
# File 'lib/vpsa/searcher/base.rb', line 8 def inicio @inicio end |
#quantidade ⇒ Object
Returns the value of attribute quantidade.
8 9 10 |
# File 'lib/vpsa/searcher/base.rb', line 8 def quantidade @quantidade end |
Instance Method Details
#as_parameter ⇒ Object
10 11 12 13 14 15 16 17 18 |
# File 'lib/vpsa/searcher/base.rb', line 10 def as_parameter variables = instance_variables.map do |name| variable_name = name.to_s.tr("@", "") [variable_name, instance_variable_get(name)] end Hash[variables] end |