Class: Api::Taxjar::Category
- Inherits:
-
Data
- Object
- Data
- Api::Taxjar::Category
- 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
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#product_tax_code ⇒ Object
readonly
Returns the value of attribute product_tax_code.
Instance Method Summary collapse
-
#initialize(name: nil, product_tax_code: nil, description: nil) ⇒ Category
constructor
A new instance of Category.
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
#description ⇒ Object (readonly)
Returns the value of attribute description
7 8 9 |
# File 'app/services/api/taxjar/category.rb', line 7 def description @description end |
#name ⇒ Object (readonly)
Returns the value of attribute name
7 8 9 |
# File 'app/services/api/taxjar/category.rb', line 7 def name @name end |
#product_tax_code ⇒ Object (readonly)
Returns the value of attribute product_tax_code
7 8 9 |
# File 'app/services/api/taxjar/category.rb', line 7 def product_tax_code @product_tax_code end |