Class: MOCO::LetterPaper
- Inherits:
-
BaseEntity
- Object
- BaseEntity
- MOCO::LetterPaper
- Defined in:
- lib/moco/entities/letter_paper.rb
Overview
Represents a MOCO letter paper (letterhead template used on invoices/offers PDFs) Read-only listing of letterheads configured in the MOCO account.
Read-only attributes:
id, name, active, template, file, created_at, updated_at
Usage:
moco.letter_papers.all
Note:
The API only exposes a list endpoint (GET /letter_papers).
Use a letter paper's `id` as `letter_paper_id` when fetching
invoice/offer PDFs (e.g. GET /invoices/{id}.pdf?letter_paper_id=...).
Instance Attribute Summary
Attributes inherited from BaseEntity
Instance Method Summary collapse
Methods inherited from BaseEntity
#==, #association, #destroy, #eql?, #has_many, #hash, #id, #initialize, #inspect, #reload, #save, #to_h, #to_json, #update
Constructor Details
This class inherits a constructor from MOCO::BaseEntity
Instance Method Details
#to_s ⇒ Object
19 20 21 |
# File 'lib/moco/entities/letter_paper.rb', line 19 def to_s name.to_s end |