Class: Ticketbai::Document

Inherits:
Object
  • Object
show all
Defined in:
lib/ticketbai/document.rb

Constant Summary collapse

TBAI_VERSION =
'1.2'.freeze

Instance Method Summary collapse

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

#createObject

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/ticketbai/document.rb', line 11

def create
  raise NotImplementedError, 'Must implement this method'
end