Class: BillForward::PricingComponent

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

Overview

This entity exposes the following child entities via method_missing:

PricingComponentTier[] .tiers

Instance Attribute Summary

Attributes inherited from BillingEntity

#_client

Class Method Summary collapse

Methods inherited from MutableEntity

#delete, #initialize, #save

Methods inherited from InsertableEntity

create, #initialize

Methods inherited from BillingEntity

#[], #[]=, #_dump, _load, build_entity, build_entity_array, #camel_case_lower, get_by_id, #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

.get_all(options = nil, customClient = nil) ⇒ Object

Raises:

  • (ArgumentError)


8
9
10
11
12
13
# File 'lib/bill_forward/entities/pricing_component.rb', line 8

def self.get_all(options=nil, customClient=nil)
  raise ArgumentError.new('Get All support is denied for this entity;
    at the time of writing, no working API endpoint exists to support it.
    The entity can be GETted through cascade (i.e. GET a related entity), or by ID only.'
  )
end