class A55::Client::Instruction

Attributes

client[RW]

Public Class Methods

new(client) click to toggle source
# File lib/a55/client/instruction.rb, line 5
def initialize(client)
  self.client = client
  raise A55::MissingAccountIdError unless client.account_id
end

Public Instance Methods

create(options = {}) click to toggle source
# File lib/a55/client/instruction.rb, line 20
def create(options = {})
  response = client.post("/instruction/#{client.account_id}/create", options)
  response.parsed_response
end
find(id) click to toggle source
# File lib/a55/client/instruction.rb, line 10
def find(id) 
  response = client.get("/instruction/#{client.account_id}/#{id}")
  response.parsed_response
end
update(options = {}) click to toggle source
# File lib/a55/client/instruction.rb, line 25
def update(options = {})
  response = client.post("/instruction/#{client.account_id}/create", options)
  response.parsed_response
end
where(options = {}) click to toggle source
# File lib/a55/client/instruction.rb, line 15
def where(options = {})
  response = client.post("/instruction/#{client.account_id}", options)
  response
end