Class: Peddler::APIs::ListingsRestrictions20210801::Reason

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

Returns the value of attribute links.



55
56
57
# File 'sig/peddler/apis/listings_restrictions_2021_08_01.rbs', line 55

def links
  @links
end

#messageString (readonly)

Returns the value of attribute message.

Returns:

  • (String)


56
57
58
# File 'sig/peddler/apis/listings_restrictions_2021_08_01.rbs', line 56

def message
  @message
end

#reason_codeString? (readonly)

Returns the value of attribute reason_code.

Returns:

  • (String, nil)


57
58
59
# File 'sig/peddler/apis/listings_restrictions_2021_08_01.rbs', line 57

def reason_code
  @reason_code
end

Class Method Details

.[](message:, links:, reason_code:) ⇒ Peddler::APIs::ListingsRestrictions20210801::Reason .[](arg0, arg1, arg2) ⇒ Peddler::APIs::ListingsRestrictions20210801::Reason

Overloads:



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

def self.[]: (message: String, ?links: Array[Peddler::APIs::ListingsRestrictions20210801::Link]?, ?reason_code: String?) -> Peddler::APIs::ListingsRestrictions20210801::Reason
| (String, Array[Peddler::APIs::ListingsRestrictions20210801::Link]?, String?) -> Peddler::APIs::ListingsRestrictions20210801::Reason

.members[ :message, :links, :reason_code ]

Returns:

  • ([ :message, :links, :reason_code ])


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

def self.members: () -> [ :message, :links, :reason_code ]

.new(message:, links:, reason_code:) ⇒ Peddler::APIs::ListingsRestrictions20210801::Reason .new(arg0, arg1, arg2) ⇒ Peddler::APIs::ListingsRestrictions20210801::Reason

Overloads:



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

def self.new: (message: String, ?links: Array[Peddler::APIs::ListingsRestrictions20210801::Link]?, ?reason_code: String?) -> Peddler::APIs::ListingsRestrictions20210801::Reason
| (String, Array[Peddler::APIs::ListingsRestrictions20210801::Link]?, String?) -> Peddler::APIs::ListingsRestrictions20210801::Reason

.parsePeddler::APIs::ListingsRestrictions20210801::Reason

Parameters:

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

Returns:



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

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

Instance Method Details

#members[ :message, :links, :reason_code ]

Returns:

  • ([ :message, :links, :reason_code ])


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

def members: () -> [ :message, :links, :reason_code ]

#to_h{ message: String, links: Array[Peddler::APIs::ListingsRestrictions20210801::Link]?, reason_code: String? }

Returns:



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

def to_h: () -> { message: String, links: Array[Peddler::APIs::ListingsRestrictions20210801::Link]?, reason_code: String? }