Module: DaisybillApi::Ext::CRUD::Show::ClassMethods

Defined in:
lib/daisybill_api/ext/crud/show.rb

Instance Method Summary collapse

Instance Method Details

#find(id) ⇒ Object

Retrieving a record

DaisybillApi::Models::BillingProvider.find(14) # => <DaisybillApi::Models::BillingProvider id: 14...>

If a record is not found, nil is returned



11
12
13
14
# File 'lib/daisybill_api/ext/crud/show.rb', line 11

def find(id)
  c = client :get, show_path(id)
  new(c.response) if c.success?
end