Class: Peddler::APIs::Vehicles20241101::MonthAndYear

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#monthFloat? (readonly)

Returns the value of attribute month.

Returns:

  • (Float, nil)


65
66
67
# File 'sig/peddler/apis/vehicles_2024_11_01.rbs', line 65

def month
  @month
end

#yearFloat? (readonly)

Returns the value of attribute year.

Returns:

  • (Float, nil)


66
67
68
# File 'sig/peddler/apis/vehicles_2024_11_01.rbs', line 66

def year
  @year
end

Class Method Details

.[](month:, year:) ⇒ Peddler::APIs::Vehicles20241101::MonthAndYear .[](arg0, arg1) ⇒ Peddler::APIs::Vehicles20241101::MonthAndYear

Overloads:



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

def self.[]: (?month: Float?, ?year: Float?) -> Peddler::APIs::Vehicles20241101::MonthAndYear
| (Float?, Float?) -> Peddler::APIs::Vehicles20241101::MonthAndYear

.members[ :month, :year ]

Returns:

  • ([ :month, :year ])


61
# File 'sig/peddler/apis/vehicles_2024_11_01.rbs', line 61

def self.members: () -> [ :month, :year ]

.new(month:, year:) ⇒ Peddler::APIs::Vehicles20241101::MonthAndYear .new(arg0, arg1) ⇒ Peddler::APIs::Vehicles20241101::MonthAndYear

Overloads:



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

def self.new: (?month: Float?, ?year: Float?) -> Peddler::APIs::Vehicles20241101::MonthAndYear
| (Float?, Float?) -> Peddler::APIs::Vehicles20241101::MonthAndYear

.parsePeddler::APIs::Vehicles20241101::MonthAndYear

Parameters:

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

Returns:



63
# File 'sig/peddler/apis/vehicles_2024_11_01.rbs', line 63

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

Instance Method Details

#members[ :month, :year ]

Returns:

  • ([ :month, :year ])


68
# File 'sig/peddler/apis/vehicles_2024_11_01.rbs', line 68

def members: () -> [ :month, :year ]

#to_h{ month: Float?, year: Float? }

Returns:

  • ({ month: Float?, year: Float? })


69
# File 'sig/peddler/apis/vehicles_2024_11_01.rbs', line 69

def to_h: () -> { month: Float?, year: Float? }