Class: FreshBooks::Estimate

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

Instance Method Summary collapse

Methods inherited from Base

actions, #api_action, api_class_name, #api_create_action, api_get_action, api_list_action, #api_update_action, class_of_freshbooks_base_descendant, connection, define_class_method, establish_connection, new_from_xml, #primary_key, #primary_key_value, #primary_key_value=, #to_xml

Methods included from Schema::Mixin

included

Instance Method Details

#emailObject



16
17
18
19
# File 'lib/freshbooks/estimate.rb', line 16

def email
  client = Client.get(self.client_id)
  client.email
end

#nameObject



13
14
15
# File 'lib/freshbooks/estimate.rb', line 13

def name
  "#{self.first_name} #{self.last_name}"
end