Sha256: d7ced55315707f3aabbf349e1f8702c5ec87e6673b2e1a59248e0d93841b3c60
Contents?: true
Size: 516 Bytes
Versions: 20
Compression:
Stored size: 516 Bytes
Contents
#This module contains class methods used when building up querys on resources. Think index? module Homeflow module API class Collection < Array def initialize(collection_response, klass) @has_next_page = collection_response["has_next"] @total = collection_response["total"] collection_response["elements"].each{|element| self << klass.new(element)} end def has_next_page? @has_next_page end def total @total end end end end
Version data entries
20 entries across 20 versions & 1 rubygems