Class: TickTock::Card Private
- Inherits:
-
Object
- Object
- TickTock::Card
- Defined in:
- lib/tick_tock/card.rb,
lib/tick_tock/card.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
The representation of a “punch card” used by the default Punch implementation
Instance Attribute Summary collapse
-
#parent_card ⇒ Card?
readonly
The current value of parent_card.
-
#subject ⇒ Object
readonly
Description of subject of this card.
-
#time_in ⇒ Time?
readonly
The current value of time_in.
-
#time_out ⇒ Time?
readonly
The current value of time_out.
Class Method Summary collapse
-
.with(subject:, parent_card:, time_in:, time_out:) ⇒ Card
private
Constructor accepting keyword args.
Instance Method Summary collapse
-
#initialize(subject, parent_card, time_in, time_out) ⇒ Card
constructor
private
A new instance of Card.
-
#with(subject: nil, parent_card: nil, time_in: nil, time_out: nil) ⇒ Card
private
A copy of this instance with any given values replaced.
Constructor Details
#initialize(subject, parent_card, time_in, time_out) ⇒ Card
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Card.
15 |
# File 'lib/tick_tock/card.rb', line 15 def initialize(subject, parent_card, time_in, time_out); end |
Instance Attribute Details
#parent_card ⇒ Card? (readonly)
Returns the current value of parent_card.
1 2 3 |
# File 'lib/tick_tock/card.rb', line 1 def parent_card @parent_card end |
#subject ⇒ Object (readonly)
Description of subject of this card
41 42 43 |
# File 'lib/tick_tock/card.rb', line 41 def subject @subject end |
#time_in ⇒ Time? (readonly)
Returns the current value of time_in.
1 2 3 |
# File 'lib/tick_tock/card.rb', line 1 def time_in @time_in end |
#time_out ⇒ Time? (readonly)
Returns the current value of time_out.
1 2 3 |
# File 'lib/tick_tock/card.rb', line 1 def time_out @time_out end |
Class Method Details
.with(subject:, parent_card:, time_in:, time_out:) ⇒ Card
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Constructor accepting keyword args.
9 |
# File 'lib/tick_tock/card.rb', line 9 def self.with(subject:, parent_card:, time_in:, time_out:); end |
Instance Method Details
#with(subject: nil, parent_card: nil, time_in: nil, time_out: nil) ⇒ Card
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a copy of this instance with any given values replaced.
24 25 |
# File 'lib/tick_tock/card.rb', line 24 def with(subject: nil, parent_card: nil, time_in: nil, time_out: nil) end |