Class: Billomat::Models::InvoiceItem

Inherits:
Base
  • Object
show all
Defined in:
lib/billomat/models/invoice_item.rb

Overview

Representation of the invoice item resource.

Instance Attribute Summary

Attributes inherited from Base

#data

Class Method Summary collapse

Methods inherited from Base

#as_json, #create, #delete, find, #id, #initialize, #method_missing, #respond_to_missing?, #save, #update, where, #wrapped_data

Constructor Details

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

Dynamic Method Handling

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

Class Method Details

.base_pathString

Returns the resource’s base path.

Returns:

  • (String)

    the resource’s base path



9
10
11
# File 'lib/billomat/models/invoice_item.rb', line 9

def self.base_path
  '/invoice-items'
end

.resource_nameString

Returns the resource’s name.

Returns:

  • (String)

    the resource’s name



14
15
16
# File 'lib/billomat/models/invoice_item.rb', line 14

def self.resource_name
  'invoice-item'
end