Class: Peddler::APIs::AplusContent20201101::StandardComparisonProductBlock

Inherits:
Data
  • Object
show all
Defined in:
sig/peddler/apis/aplus_content_2020_11_01.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#asinString? (readonly)

Returns the value of attribute asin.

Returns:

  • (String, nil)


585
586
587
# File 'sig/peddler/apis/aplus_content_2020_11_01.rbs', line 585

def asin
  @asin
end

#highlightBoolean? (readonly)

Returns the value of attribute highlight.

Returns:

  • (Boolean, nil)


586
587
588
# File 'sig/peddler/apis/aplus_content_2020_11_01.rbs', line 586

def highlight
  @highlight
end

#imagePeddler::APIs::AplusContent20201101::ImageComponent? (readonly)

Returns the value of attribute image.



587
588
589
# File 'sig/peddler/apis/aplus_content_2020_11_01.rbs', line 587

def image
  @image
end

#metricsArray[Peddler::APIs::AplusContent20201101::PlainTextItem]? (readonly)

Returns the value of attribute metrics.



588
589
590
# File 'sig/peddler/apis/aplus_content_2020_11_01.rbs', line 588

def metrics
  @metrics
end

#positionInteger (readonly)

Returns the value of attribute position.

Returns:

  • (Integer)


589
590
591
# File 'sig/peddler/apis/aplus_content_2020_11_01.rbs', line 589

def position
  @position
end

#titleString? (readonly)

Returns the value of attribute title.

Returns:

  • (String, nil)


590
591
592
# File 'sig/peddler/apis/aplus_content_2020_11_01.rbs', line 590

def title
  @title
end

Class Method Details

.[](position:, asin:, highlight:, image:, metrics:, title:) ⇒ Peddler::APIs::AplusContent20201101::StandardComparisonProductBlock .[](arg0, arg1, arg2, arg3, arg4, arg5) ⇒ Peddler::APIs::AplusContent20201101::StandardComparisonProductBlock

Overloads:



578
579
# File 'sig/peddler/apis/aplus_content_2020_11_01.rbs', line 578

def self.[]: (position: Integer, ?asin: String?, ?highlight: bool?, ?image: Peddler::APIs::AplusContent20201101::ImageComponent?, ?metrics: Array[Peddler::APIs::AplusContent20201101::PlainTextItem]?, ?title: String?) -> Peddler::APIs::AplusContent20201101::StandardComparisonProductBlock
| (Integer, String?, bool?, Peddler::APIs::AplusContent20201101::ImageComponent?, Array[Peddler::APIs::AplusContent20201101::PlainTextItem]?, String?) -> Peddler::APIs::AplusContent20201101::StandardComparisonProductBlock

.members[ :position, :asin, :highlight, :image, :metrics, :title ]

Returns:

  • ([ :position, :asin, :highlight, :image, :metrics, :title ])


581
# File 'sig/peddler/apis/aplus_content_2020_11_01.rbs', line 581

def self.members: () -> [ :position, :asin, :highlight, :image, :metrics, :title ]

.new(position:, asin:, highlight:, image:, metrics:, title:) ⇒ Peddler::APIs::AplusContent20201101::StandardComparisonProductBlock .new(arg0, arg1, arg2, arg3, arg4, arg5) ⇒ Peddler::APIs::AplusContent20201101::StandardComparisonProductBlock

Overloads:



576
577
# File 'sig/peddler/apis/aplus_content_2020_11_01.rbs', line 576

def self.new: (position: Integer, ?asin: String?, ?highlight: bool?, ?image: Peddler::APIs::AplusContent20201101::ImageComponent?, ?metrics: Array[Peddler::APIs::AplusContent20201101::PlainTextItem]?, ?title: String?) -> Peddler::APIs::AplusContent20201101::StandardComparisonProductBlock
| (Integer, String?, bool?, Peddler::APIs::AplusContent20201101::ImageComponent?, Array[Peddler::APIs::AplusContent20201101::PlainTextItem]?, String?) -> Peddler::APIs::AplusContent20201101::StandardComparisonProductBlock

.parsePeddler::APIs::AplusContent20201101::StandardComparisonProductBlock

Parameters:

  • (Hash[String | Symbol, untyped])
  • (Object)

Returns:



583
# File 'sig/peddler/apis/aplus_content_2020_11_01.rbs', line 583

def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::AplusContent20201101::StandardComparisonProductBlock

Instance Method Details

#highlight?Boolean

Returns:

  • (Boolean)


592
# File 'sig/peddler/apis/aplus_content_2020_11_01.rbs', line 592

def highlight?: () -> bool

#members[ :position, :asin, :highlight, :image, :metrics, :title ]

Returns:

  • ([ :position, :asin, :highlight, :image, :metrics, :title ])


593
# File 'sig/peddler/apis/aplus_content_2020_11_01.rbs', line 593

def members: () -> [ :position, :asin, :highlight, :image, :metrics, :title ]

#to_h{ position: Integer, asin: String?, highlight: bool?, image: Peddler::APIs::AplusContent20201101::ImageComponent?, metrics: Array[Peddler::APIs::AplusContent20201101::PlainTextItem]?, title: String? }

Returns:



594
# File 'sig/peddler/apis/aplus_content_2020_11_01.rbs', line 594

def to_h: () -> { position: Integer, asin: String?, highlight: bool?, image: Peddler::APIs::AplusContent20201101::ImageComponent?, metrics: Array[Peddler::APIs::AplusContent20201101::PlainTextItem]?, title: String? }