class Sepomex::Collection

Attributes

collection[R]
per_page[R]
total_objects[R]
total_pages[R]

Public Class Methods

new(attributes = {}) click to toggle source
# File lib/sepomex/collection.rb, line 5
def initialize(attributes = {})
  @total_pages = attributes["total_pages"]
  @total_objects = attributes["total_objects"]
  @per_page = attributes["per_page"]
  @collection = []
end

Public Instance Methods

method_missing(name, *args, &block) click to toggle source
# File lib/sepomex/collection.rb, line 12
def method_missing(name, *args, &block)
  @collection.send(name, *args, &block)
end