Class: Ticketbai::Document
- Inherits:
-
Object
- Object
- Ticketbai::Document
- Defined in:
- lib/ticketbai/document.rb
Direct Known Subclasses
Ticketbai::Documents::Annulment, Ticketbai::Documents::Issuance
Constant Summary collapse
- TBAI_VERSION =
'1.2'.freeze
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(args) ⇒ Document
constructor
A new instance of Document.
Constructor Details
#initialize(args) ⇒ Document
Returns a new instance of Document.
5 6 7 8 9 |
# File 'lib/ticketbai/document.rb', line 5 def initialize(args) self.class::ATTRIBUTES.each do |p| instance_variable_set "@#{p}", args[p] end end |
Instance Method Details
#create ⇒ Object
11 12 13 |
# File 'lib/ticketbai/document.rb', line 11 def create raise NotImplementedError, 'Must implement this method' end |