Class: Moloni::Document

Inherits:
BaseModel show all
Defined in:
lib/moloni/models/document.rb

Constant Summary

Constants inherited from BaseModel

BaseModel::COMMON_ACRONYMS, BaseModel::ERROR_MESSAGES

Class Method Summary collapse

Methods inherited from BaseModel

all, composed_params, count, create, delete, find, format_url, #format_url, method_missing, post, respond_to_missing?

Class Method Details

.all_types(args = {}) ⇒ Object



14
15
16
# File 'lib/moloni/models/document.rb', line 14

def self.all_types(args = {})
  post('getAllDocumentTypes/', args)
end

Backward-compatible aliases (v0.4 API names)



10
11
12
# File 'lib/moloni/models/document.rb', line 10

def self.pdf_link(args = {})
  post('getPDFLink/', args)
end