Class: Zakuro::Result::Data::SingleDay

Inherits:
Core
  • Object
show all
Defined in:
lib/zakuro/result/data/single_day.rb

Overview

SingleDay 1日

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Core

#to_h, #to_json, #to_pretty_json

Constructor Details

#initialize(year:, month:, day:, options: {}) ⇒ SingleDay

初期化



48
49
50
51
52
53
54
# File 'lib/zakuro/result/data/single_day.rb', line 48

def initialize(year:, month:, day:, options: {})
  super
  @year = year
  @month = month
  @day = day
  @options = options
end

Instance Attribute Details

#dayDay (readonly)



36
37
38
# File 'lib/zakuro/result/data/single_day.rb', line 36

def day
  @day
end

#monthMonth (readonly)



34
35
36
# File 'lib/zakuro/result/data/single_day.rb', line 34

def month
  @month
end

#optionsHash<String, Option::AbstractOption> (readonly)



38
39
40
# File 'lib/zakuro/result/data/single_day.rb', line 38

def options
  @options
end

#yearYear (readonly)



32
33
34
# File 'lib/zakuro/result/data/single_day.rb', line 32

def year
  @year
end