Sha256: 89f12164b6870e38783a7dade953c589858a98125e97dfc1387e277c6d706ed7
Contents?: true
Size: 488 Bytes
Versions: 2
Compression:
Stored size: 488 Bytes
Contents
require 'pina/models/document_pairing' require 'pina/collections/document_pairing' module Pina class DocumentPairing class << self def all(page = nil) response = Pina::RestAdapter.get(:document_pairings, page) return Pina::Collections::DocumentPairing.new(attributes(response)) if response.ok? response end private def attributes(response) response.to_hash.merge(response: response) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pina-0.14.4 | lib/pina/document_pairing.rb |
pina-0.14.3 | lib/pina/document_pairing.rb |