Class: FreshBooks::Invoice

Inherits:
Base
  • Object
show all
Defined in:
lib/freshbooksrb.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

belongs_to, create, delete, get, has_many, #id, #initialize, list, map, #method_missing, update

Constructor Details

This class inherits a constructor from FreshBooks::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class FreshBooks::Base

Class Method Details

.send_by_email(id) ⇒ Object



42
43
44
# File 'lib/freshbooksrb.rb', line 42

def self.send_by_email(id)
  call_api_with_id('sendByEmail', id)
end

.send_by_snail_mail(id) ⇒ Object



46
47
48
# File 'lib/freshbooksrb.rb', line 46

def self.send_by_snail_mail(id)
  call_api_with_id('sendBySnailMail', id)
end

Instance Method Details

#send_by_emailObject



34
35
36
# File 'lib/freshbooksrb.rb', line 34

def send_by_email
  self.class.send_by_email(invoice_id)
end

#send_by_snail_mailObject



38
39
40
# File 'lib/freshbooksrb.rb', line 38

def send_by_snail_mail
  self.class.send_by_snail_mail(invoice_id)
end