module DaisybillApi::Ext::CRUD::Show::ClassMethods

Public Instance Methods

find(id) click to toggle source

Retrieving a record

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

If a record is not found, nil is returned

# 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