Class: Quickbooks::Model::Class

Inherits:
BaseModel show all
Includes:
NameEntity::PermitAlterations, NameEntity::Quality
Defined in:
lib/quickbooks/model/class.rb

Constant Summary collapse

XML_COLLECTION_NODE =
"Class"
XML_NODE =
"Class"
REST_RESOURCE =
'class'

Instance Method Summary collapse

Methods included from NameEntity::PermitAlterations

#valid_for_create?, #valid_for_deletion?, #valid_for_update?

Methods included from NameEntity::Quality

#billable_status_is_valid, #email_address, #email_address=, #email_address_is_valid, #entity_type_is_valid, #journal_line_entry_tax, #names_cannot_contain_invalid_characters, #posting_type_is_valid

Methods inherited from BaseModel

#as_json, attribute_names, #attributes, attrs_with_types, #initialize, inspect, #inspect, reference_attrs, reference_setters, resource_for_collection, resource_for_singular, to_xml_big_decimal, #to_xml_inject_ns, #to_xml_ns

Methods included from Validator

#line_item_size

Methods included from Definition

included, #is_name_list_entity?, #is_transaction_entity?

Constructor Details

This class inherits a constructor from Quickbooks::Model::BaseModel

Instance Method Details

#sub_class?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/quickbooks/model/class.rb', line 25

def sub_class?
  sub_class.to_s == 'true'
end