Class: Api::Taxjar::Category

Inherits:
Data
  • Object
show all
Defined in:
app/services/api/taxjar/category.rb

Overview

A product tax category returned by GET /v2/categories, consumed by
ProductTaxCode.import_from_taxjar.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name: nil, product_tax_code: nil, description: nil) ⇒ Category

Returns a new instance of Category.



8
# File 'app/services/api/taxjar/category.rb', line 8

def initialize(name: nil, product_tax_code: nil, description: nil) = super

Instance Attribute Details

#descriptionObject (readonly)

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



7
8
9
# File 'app/services/api/taxjar/category.rb', line 7

def description
  @description
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



7
8
9
# File 'app/services/api/taxjar/category.rb', line 7

def name
  @name
end

#product_tax_codeObject (readonly)

Returns the value of attribute product_tax_code

Returns:

  • (Object)

    the current value of product_tax_code



7
8
9
# File 'app/services/api/taxjar/category.rb', line 7

def product_tax_code
  @product_tax_code
end