Class: Printavo::Fee

Inherits:
Models::Base show all
Defined in:
lib/printavo/models/fee.rb

Instance Method Summary collapse

Methods inherited from Models::Base

#==, #[], #dig, #initialize, #inspect, #to_h

Constructor Details

This class inherits a constructor from Printavo::Models::Base

Instance Method Details

#amountObject



8
# File 'lib/printavo/models/fee.rb', line 8

def amount  = self['amount']

#idObject



6
# File 'lib/printavo/models/fee.rb', line 6

def id      = self['id']

#nameObject



7
# File 'lib/printavo/models/fee.rb', line 7

def name    = self['name']

#taxableObject



9
# File 'lib/printavo/models/fee.rb', line 9

def taxable = self['taxable']

#taxable?Boolean

Returns:

  • (Boolean)


10
# File 'lib/printavo/models/fee.rb', line 10

def taxable? = !!self['taxable']