Class: Dolibarr::Thirdparty

Inherits:
Record
  • Object
show all
Defined in:
lib/dolibarr/thirdparty.rb

Overview

A thirdparty (customer or supplier). Every field stays reachable via Record#raw / Record#[]; the common ones get named readers.

Instance Attribute Summary

Attributes inherited from Record

#raw

Instance Method Summary collapse

Methods inherited from Record

#==, #[], from, #hash, #id, #initialize, #to_h

Constructor Details

This class inherits a constructor from Dolibarr::Record

Instance Method Details

#nameString?

Returns the company / thirdparty name.

Returns:

  • (String, nil)

    the company / thirdparty name



8
9
10
# File 'lib/dolibarr/thirdparty.rb', line 8

def name
  self['name']
end

#refString?

Returns the thirdparty reference, when set.

Returns:

  • (String, nil)

    the thirdparty reference, when set



13
14
15
# File 'lib/dolibarr/thirdparty.rb', line 13

def ref
  self['ref']
end