Class: Peddler::APIs::ListingsRestrictions20210801::RestrictionList

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#restrictionsArray[Peddler::APIs::ListingsRestrictions20210801::Restriction] (readonly)

Returns the value of attribute restrictions.



91
92
93
# File 'sig/peddler/apis/listings_restrictions_2021_08_01.rbs', line 91

def restrictions
  @restrictions
end

Class Method Details

.[](restrictions:) ⇒ Peddler::APIs::ListingsRestrictions20210801::RestrictionList .[](arg0) ⇒ Peddler::APIs::ListingsRestrictions20210801::RestrictionList



84
85
# File 'sig/peddler/apis/listings_restrictions_2021_08_01.rbs', line 84

def self.[]: (restrictions: Array[Peddler::APIs::ListingsRestrictions20210801::Restriction]) -> Peddler::APIs::ListingsRestrictions20210801::RestrictionList
| (Array[Peddler::APIs::ListingsRestrictions20210801::Restriction]) -> Peddler::APIs::ListingsRestrictions20210801::RestrictionList

.members[ :restrictions ]

Returns:

  • ([ :restrictions ])


87
# File 'sig/peddler/apis/listings_restrictions_2021_08_01.rbs', line 87

def self.members: () -> [ :restrictions ]

.new(restrictions:) ⇒ Peddler::APIs::ListingsRestrictions20210801::RestrictionList .new(arg0) ⇒ Peddler::APIs::ListingsRestrictions20210801::RestrictionList



82
83
# File 'sig/peddler/apis/listings_restrictions_2021_08_01.rbs', line 82

def self.new: (restrictions: Array[Peddler::APIs::ListingsRestrictions20210801::Restriction]) -> Peddler::APIs::ListingsRestrictions20210801::RestrictionList
| (Array[Peddler::APIs::ListingsRestrictions20210801::Restriction]) -> Peddler::APIs::ListingsRestrictions20210801::RestrictionList

.parsePeddler::APIs::ListingsRestrictions20210801::RestrictionList

Parameters:

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

Returns:



89
# File 'sig/peddler/apis/listings_restrictions_2021_08_01.rbs', line 89

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

Instance Method Details

#members[ :restrictions ]

Returns:

  • ([ :restrictions ])


93
# File 'sig/peddler/apis/listings_restrictions_2021_08_01.rbs', line 93

def members: () -> [ :restrictions ]

#to_h{ restrictions: Array[Peddler::APIs::ListingsRestrictions20210801::Restriction] }

Returns:



94
# File 'sig/peddler/apis/listings_restrictions_2021_08_01.rbs', line 94

def to_h: () -> { restrictions: Array[Peddler::APIs::ListingsRestrictions20210801::Restriction] }