class Io::Flow::V0::Models::LogoImageSvg

If the browser knows that an image is a svg, it can dynamically redraw the image to different sizes

Attributes

url[R]

Public Class Methods

new(incoming={}) click to toggle source
Calls superclass method Io::Flow::V0::Models::LogoImage::new
# File lib/flow_commerce/flow_api_v0_client.rb, line 49439
def initialize(incoming={})
  super(:discriminator => LogoImage::Types::LOGO_IMAGE_SVG)
  opts = HttpClient::Helper.symbolize_keys(incoming)
  HttpClient::Preconditions.require_keys(opts, [:url], 'LogoImageSvg')
  @url = HttpClient::Preconditions.assert_class('url', opts.delete(:url), String)
end

Public Instance Methods

copy(incoming={}) click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 49450
def copy(incoming={})
  LogoImageSvg.new(subtype_to_hash.merge(HttpClient::Helper.symbolize_keys(incoming)))
end
subtype_to_hash() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 49454
def subtype_to_hash
  {
    :url => url
  }
end
to_json() click to toggle source
# File lib/flow_commerce/flow_api_v0_client.rb, line 49446
def to_json
  JSON.dump(to_hash)
end