Class: Fakturan::Client

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#add_errors_to_model, #add_to_errors, connection, create, create!, request, #save, #save!

Class Method Details

.find_by(conditions = {}) ⇒ Object



19
20
21
# File 'lib/fakturan_nu/client.rb', line 19

def self.find_by(conditions = {})
  where(conditions).first
end

Instance Method Details

#address=(attrs_or_obj) ⇒ Object



11
12
13
14
15
16
17
# File 'lib/fakturan_nu/client.rb', line 11

def address=(attrs_or_obj)
  if attrs_or_obj.respond_to?(:each)
    send(:address_attributes=, attrs_or_obj)
  else
    super
  end
end