class LibTAD::Astronomy::AstronomyEvent
Information about a sunrise/sunset event for a specific day.
Attributes
hour[R]
@return [Integer] Hour at which the event is happening (local time).
minute[R]
@return [Integer] Minute at which the event is happening (local time).
type[R]
@return [String] Indicates the type of the event.
Public Class Methods
new(hash)
click to toggle source
# File lib/types/astronomy/astronomy_event.rb, line 17 def initialize(hash) @type = hash.fetch('type', nil) @hour = hash.fetch('hour', nil) @minute = hash.fetch('minute', nil) end