Skip to content

Instantly share code, notes, and snippets.

@braidn
Created May 28, 2014 17:23
Show Gist options
  • Save braidn/6d75653b66ef57fd46ed to your computer and use it in GitHub Desktop.
Save braidn/6d75653b66ef57fd46ed to your computer and use it in GitHub Desktop.
class Case
def self.build(params)
new.build(params)
end
def build(params)
create_airware_case(params)
end
private
attr_reader :client
def client
@client ||= Restforce.new
end
def create_airware_case(params)
client.create('case', params)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment