Sha256: 7d24ca499afe3a1a32397d8a22d1799a99243fdb91f9908ba64d5b74ad3b3f54
Contents?: true
Size: 666 Bytes
Versions: 6
Compression:
Stored size: 666 Bytes
Contents
module RubyRedtail class Contact class Accounts def initialize(contact_id, api_hash) @api_hash = api_hash @contact_id = contact_id end def fetch RubyRedtail::Query.run("contacts/#{@contact_id}/accounts", @api_hash, "GET") end def create (params) update(@contact_id, 0, params) end def update (account_id, params) RubyRedtail::Query.run("contacts/#{contact_id}/accounts/#{account_id}", @api_hash, 'PUT', params) end def assets (account_id) RubyRedtail::Query.run("contacts/#{contact_id}/#{account_id}/assets", @api_hash, "GET") end end end end
Version data entries
6 entries across 6 versions & 1 rubygems