Class: BillForward::GenericEntity

Inherits:
MutableEntity show all
Defined in:
lib/bill_forward/entities/generic_entity.rb

Instance Attribute Summary

Attributes inherited from BillingEntity

#_client

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from MutableEntity

#delete, #initialize

Methods inherited from InsertableEntity

#initialize

Methods inherited from BillingEntity

#[], #[]=, #_dump, _load, build_entity, build_entity_array, #camel_case_lower, #initialize, #method_missing, request_ambiguous, request_first_heterotyped, request_many_heterotyped, #serialize, #serialize_field, singleton_client, #state_params, #to_json, #to_ordered_hash, #to_s, #to_unordered_hash

Constructor Details

This class inherits a constructor from BillForward::MutableEntity

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class BillForward::BillingEntity

Class Method Details

.create(entity = nil) ⇒ Object



4
5
6
7
# File 'lib/bill_forward/entities/generic_entity.rb', line 4

def create(entity = nil)
	raise DenyMethod.new 'Create support is denied for this entity; '+
'it is just a payload wrapper, and is thus not a real entity in BillForward.'
end

.get_all(query_params = {}, customClient = nil) ⇒ Object



14
15
16
17
# File 'lib/bill_forward/entities/generic_entity.rb', line 14

def get_all(query_params = {}, customClient = nil)
	raise DenyMethod.new 'Get All support is denied for this entity; '+
'it is just a payload wrapper, and is thus not a real entity in BillForward.'
end

.get_by_id(id, query_params = {}, customClient = nil) ⇒ Object



9
10
11
12
# File 'lib/bill_forward/entities/generic_entity.rb', line 9

def get_by_id(id, query_params = {}, customClient = nil)
	raise DenyMethod.new 'Get by ID support is denied for this entity; '+
'it is just a payload wrapper, and is thus not a real entity in BillForward.'
end

Instance Method Details

#saveObject



20
21
22
23
# File 'lib/bill_forward/entities/generic_entity.rb', line 20

def save()
	raise DenyMethod.new 'Save support is denied for this entity; '+
'it is just a payload wrapper, and is thus not a real entity in BillForward.'
end