Class: MfCloud::Invoice::Collection::Base
- Inherits:
-
Object
- Object
- MfCloud::Invoice::Collection::Base
- Defined in:
- lib/mf_cloud/invoice/collection/base.rb
Direct Known Subclasses
BillingCollection, DepartmentCollection, ItemCollection, PartnerCollection
Instance Attribute Summary collapse
-
#meta ⇒ Object
readonly
Returns the value of attribute meta.
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method_name, *args, &block) ⇒ Object (private)
13 14 15 16 17 18 19 |
# File 'lib/mf_cloud/invoice/collection/base.rb', line 13 def method_missing(method_name, *args , &block) if collection.respond_to? method_name collection.__send__(method_name, *args, &block) else super end end |
Instance Attribute Details
#meta ⇒ Object (readonly)
Returns the value of attribute meta.
5 6 7 |
# File 'lib/mf_cloud/invoice/collection/base.rb', line 5 def @meta end |
Instance Method Details
#collection ⇒ Object
7 8 9 |
# File 'lib/mf_cloud/invoice/collection/base.rb', line 7 def collection @collection ||= [] end |