class BillForward::InsertableEntity
Public Class Methods
create(entity = nil)
click to toggle source
Asks API to create a real instance of specified entity, based on provided model. @param options=nil [self] the Entity to create
@return [self] The created Entity
# File lib/bill_forward/insertable_entity.rb, line 14 def create(entity = nil) entity = self.new if entity.nil? TypeCheck.verifyObj(self, entity, 'entity') self.request_first('post', '', entity, nil, entity._client) end
new(*args)
click to toggle source
Calls superclass method
BillForward::BillingEntity::new
# File lib/bill_forward/insertable_entity.rb, line 3 def initialize(*args) raise AbstractInstantiateError.new('This abstract class cannot be instantiated!') if self.class == InsertableEntity super end