Class: Peddler::APIs::ListingsRestrictions20210801::Restriction
- Inherits:
-
Data
- Object
- Data
- Peddler::APIs::ListingsRestrictions20210801::Restriction
- Defined in:
- sig/peddler/apis/listings_restrictions_2021_08_01.rbs
Instance Attribute Summary collapse
-
#condition_type ⇒ String?
readonly
Returns the value of attribute condition_type.
-
#marketplace_id ⇒ String
readonly
Returns the value of attribute marketplace_id.
-
#reasons ⇒ Array[Peddler::APIs::ListingsRestrictions20210801::Reason]?
readonly
Returns the value of attribute reasons.
Class Method Summary collapse
- .[] ⇒ Object
- .members ⇒ [ :marketplace_id, :condition_type, :reasons ]
- .new ⇒ Object
- .parse ⇒ Peddler::APIs::ListingsRestrictions20210801::Restriction
Instance Method Summary collapse
- #members ⇒ [ :marketplace_id, :condition_type, :reasons ]
- #to_h ⇒ { marketplace_id: String, condition_type: String?, reasons: Array[Peddler::APIs::ListingsRestrictions20210801::Reason]? }
Instance Attribute Details
#condition_type ⇒ String? (readonly)
Returns the value of attribute condition_type.
73 74 75 |
# File 'sig/peddler/apis/listings_restrictions_2021_08_01.rbs', line 73 def condition_type @condition_type end |
#marketplace_id ⇒ String (readonly)
Returns the value of attribute marketplace_id.
74 75 76 |
# File 'sig/peddler/apis/listings_restrictions_2021_08_01.rbs', line 74 def marketplace_id @marketplace_id end |
#reasons ⇒ Array[Peddler::APIs::ListingsRestrictions20210801::Reason]? (readonly)
Returns the value of attribute reasons.
75 76 77 |
# File 'sig/peddler/apis/listings_restrictions_2021_08_01.rbs', line 75 def reasons @reasons end |
Class Method Details
.[](marketplace_id:, condition_type:, reasons:) ⇒ Peddler::APIs::ListingsRestrictions20210801::Restriction .[](arg0, arg1, arg2) ⇒ Peddler::APIs::ListingsRestrictions20210801::Restriction
66 67 |
# File 'sig/peddler/apis/listings_restrictions_2021_08_01.rbs', line 66 def self.[]: (marketplace_id: String, ?condition_type: String?, ?reasons: Array[Peddler::APIs::ListingsRestrictions20210801::Reason]?) -> Peddler::APIs::ListingsRestrictions20210801::Restriction | (String, String?, Array[Peddler::APIs::ListingsRestrictions20210801::Reason]?) -> Peddler::APIs::ListingsRestrictions20210801::Restriction |
.members ⇒ [ :marketplace_id, :condition_type, :reasons ]
69 |
# File 'sig/peddler/apis/listings_restrictions_2021_08_01.rbs', line 69 def self.members: () -> [ :marketplace_id, :condition_type, :reasons ] |
.new(marketplace_id:, condition_type:, reasons:) ⇒ Peddler::APIs::ListingsRestrictions20210801::Restriction .new(arg0, arg1, arg2) ⇒ Peddler::APIs::ListingsRestrictions20210801::Restriction
64 65 |
# File 'sig/peddler/apis/listings_restrictions_2021_08_01.rbs', line 64 def self.new: (marketplace_id: String, ?condition_type: String?, ?reasons: Array[Peddler::APIs::ListingsRestrictions20210801::Reason]?) -> Peddler::APIs::ListingsRestrictions20210801::Restriction | (String, String?, Array[Peddler::APIs::ListingsRestrictions20210801::Reason]?) -> Peddler::APIs::ListingsRestrictions20210801::Restriction |
.parse ⇒ Peddler::APIs::ListingsRestrictions20210801::Restriction
71 |
# File 'sig/peddler/apis/listings_restrictions_2021_08_01.rbs', line 71 def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::ListingsRestrictions20210801::Restriction |
Instance Method Details
#members ⇒ [ :marketplace_id, :condition_type, :reasons ]
77 |
# File 'sig/peddler/apis/listings_restrictions_2021_08_01.rbs', line 77 def members: () -> [ :marketplace_id, :condition_type, :reasons ] |
#to_h ⇒ { marketplace_id: String, condition_type: String?, reasons: Array[Peddler::APIs::ListingsRestrictions20210801::Reason]? }
78 |
# File 'sig/peddler/apis/listings_restrictions_2021_08_01.rbs', line 78 def to_h: () -> { marketplace_id: String, condition_type: String?, reasons: Array[Peddler::APIs::ListingsRestrictions20210801::Reason]? } |