Class: Playbook::PbTime::Time
- Inherits:
-
Object
- Object
- Playbook::PbTime::Time
show all
- Includes:
- Playbook::Props
- Defined in:
- app/pb_kits/playbook/pb_time/time.rb
Instance Method Summary
collapse
#generate_classname, #initialize, #prop
Instance Method Details
#classname ⇒ Object
16
17
18
|
# File 'app/pb_kits/playbook/pb_time/time.rb', line 16
def classname
generate_classname("pb_time_kit", size)
end
|
20
21
22
|
# File 'app/pb_kits/playbook/pb_time/time.rb', line 20
def format_time_string
"#{pb_date_time.to_hour}:#{pb_date_time.to_minutes}#{pb_date_time.to_meridian}"
end
|
24
25
26
|
# File 'app/pb_kits/playbook/pb_time/time.rb', line 24
def format_timezone_string
pb_date_time.to_timezone.to_s
end
|
#pb_date_time ⇒ Object
28
29
30
|
# File 'app/pb_kits/playbook/pb_time/time.rb', line 28
def pb_date_time
Playbook::PbKit::PbDateTime.new(time, timezone)
end
|