Class: Jbr::Mock::Invoice

Inherits:
Invoice show all
Defined in:
lib/jbr/mock/invoice.rb

Constant Summary

Constants inherited from Invoice

Invoice::FIND

Instance Attribute Summary

Attributes inherited from Invoice

#job_id, #total

Attributes inherited from Resource

#id

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Jbr::Resource

Instance Method Details

#completed_atObject



13
# File 'lib/jbr/mock/invoice.rb', line 13

def completed_at = Jbr.mock.invoice[:completed_at]

#find(_) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/jbr/mock/invoice.rb', line 3

def find(_)
  @id = Jbr.mock.invoice[:id]
  @job_id = Jbr.mock.invoice[:job_id]
  @total = Jbr.mock.invoice[:total]

  self
end

#issued_atObject



11
# File 'lib/jbr/mock/invoice.rb', line 11

def issued_at = Jbr.mock.invoice[:issued_at]