Class: MfCloud::Invoice::Collection::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/mf_cloud/invoice/collection/base.rb

Instance Attribute Summary collapse

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

#metaObject (readonly)

Returns the value of attribute meta.



5
6
7
# File 'lib/mf_cloud/invoice/collection/base.rb', line 5

def meta
  @meta
end

Instance Method Details

#collectionObject



7
8
9
# File 'lib/mf_cloud/invoice/collection/base.rb', line 7

def collection
  @collection ||= []
end