Sha256: 169b2bc546e1d9a679b0ee5ddcba5b9489e3ceff3e97b79cbe23c34aa250b75f
Contents?: true
Size: 655 Bytes
Versions: 1
Compression:
Stored size: 655 Bytes
Contents
# frozen_string_literal: true module Kentaa module Api module Resources class Avatar < Resource def avatar_url data[:avatar_url] end private def load_resource request.get("#{endpoint_path}/avatar", options) end def create_resource(attributes) io = attributes.fetch(:io) content_type = attributes.fetch(:content_type) request.post("#{endpoint_path}/avatar", options, io, content_type: content_type) end def delete_resource request.delete("#{endpoint_path}/avatar", options) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
kentaa-api-0.8.0 | lib/kentaa/api/resources/avatar.rb |