Sha256: 7970c859d3b2a52e6e2e253f9e8abc4eb25620e32b76d3eeb261bf35eb9c7062

Contents?: true

Size: 459 Bytes

Versions: 10

Compression:

Stored size: 459 Bytes

Contents

require 'json'

module Mattermost
	module Endpoint
		module Brand

			def get_brand_image(file_name)
				File.open(file_name, "w") do |file|
					file.binmode
					get(get_brand_image_url(), stream_body: true) do |fragment|
						file.write(fragment)
					end
				end
			end

			def get_brand_image_url
				"/brand/image"
			end

			def upload_brand_image(image_file)
				#post("/brand/image", image_file)
				raise NotImplementedError
			end

		end
	end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
mattermost-api4-ruby-0.0.10 lib/mattermost/endpoint/brand.rb
mattermost-api4-ruby-0.0.9 lib/mattermost/endpoint/brand.rb
mattermost-api4-ruby-0.0.8 lib/mattermost/endpoint/brand.rb
mattermost-api4-ruby-0.0.7 lib/mattermost/endpoint/brand.rb
mattermost-api4-ruby-0.0.6 lib/mattermost/endpoint/brand.rb
mattermost-api4-ruby-0.0.5 lib/mattermost/endpoint/brand.rb
mattermost-api4-ruby-0.0.4 lib/mattermost/endpoint/brand.rb
mattermost-api4-ruby-0.0.3 lib/mattermost/endpoint/brand.rb
mattermost-api4-ruby-0.0.2 lib/mattermost/endpoint/brand.rb
mattermost-api4-ruby-0.0.1 lib/mattermost/endpoint/brand.rb