Class: Id3Taginator::Frames::Text::Entities::Date

Inherits:
Object
  • Object
show all
Includes:
Extensions::Comparable
Defined in:
lib/id3taginator/frames/text/entities/date.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Extensions::Comparable

#==, #compare

Constructor Details

#initialize(month, day) ⇒ Date

constructor

Parameters:

  • day (String, Integer)

    the day

  • month (String, Integer)

    the month



16
17
18
19
# File 'lib/id3taginator/frames/text/entities/date.rb', line 16

def initialize(month, day)
  @month = month
  @day = day
end

Instance Attribute Details

#dayObject

Returns the value of attribute day.



10
11
12
# File 'lib/id3taginator/frames/text/entities/date.rb', line 10

def day
  @day
end

#monthObject

Returns the value of attribute month.



10
11
12
# File 'lib/id3taginator/frames/text/entities/date.rb', line 10

def month
  @month
end