Class: OpenApiSDK::Models::Operations::GetQRCodeRequest

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/open_api_sdk/models/operations/getqrcode_request.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(url:, logo: nil, size: 600.0, level: Models::Operations::Level::L, fg_color: '#000000', bg_color: '#FFFFFF', hide_logo: false, margin: 2.0, include_margin: true) ⇒ GetQRCodeRequest

Returns a new instance of GetQRCodeRequest.



35
36
37
38
39
40
41
42
43
44
45
# File 'lib/open_api_sdk/models/operations/getqrcode_request.rb', line 35

def initialize(url:, logo: nil, size: 600.0, level: Models::Operations::Level::L, fg_color: '#000000', bg_color: '#FFFFFF', hide_logo: false, margin: 2.0, include_margin: true)
  @url = url
  @logo = 
  @size = size
  @level = level
  @fg_color = fg_color
  @bg_color = bg_color
  @hide_logo = 
  @margin = margin
  @include_margin = include_margin
end

Instance Method Details

#==(other) ⇒ Object



48
49
50
51
52
53
54
55
56
57
58
59
60
# File 'lib/open_api_sdk/models/operations/getqrcode_request.rb', line 48

def ==(other)
  return false unless other.is_a? self.class
  return false unless @url == other.url
  return false unless @logo == other.
  return false unless @size == other.size
  return false unless @level == other.level
  return false unless @fg_color == other.fg_color
  return false unless @bg_color == other.bg_color
  return false unless @hide_logo == other.
  return false unless @margin == other.margin
  return false unless @include_margin == other.include_margin
  true
end