Class: RepoTender::State::Store::Repo
- Inherits:
-
Data
- Object
- Data
- RepoTender::State::Store::Repo
- Defined in:
- lib/repo_tender/state/store.rb
Instance Attribute Summary collapse
-
#default_branch ⇒ Object
readonly
Returns the value of attribute default_branch.
-
#last_error ⇒ Object
readonly
Returns the value of attribute last_error.
-
#last_fetch_at ⇒ Object
readonly
Returns the value of attribute last_fetch_at.
-
#last_synced_at ⇒ Object
readonly
Returns the value of attribute last_synced_at.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(default_branch: nil, last_fetch_at: nil, last_synced_at: nil, status: nil, last_error: nil) ⇒ Repo
constructor
A new instance of Repo.
- #to_h_compact ⇒ Object
Constructor Details
#initialize(default_branch: nil, last_fetch_at: nil, last_synced_at: nil, status: nil, last_error: nil) ⇒ Repo
Returns a new instance of Repo.
20 21 22 |
# File 'lib/repo_tender/state/store.rb', line 20 def initialize(default_branch: nil, last_fetch_at: nil, last_synced_at: nil, status: nil, last_error: nil) super end |
Instance Attribute Details
#default_branch ⇒ Object (readonly)
Returns the value of attribute default_branch
19 20 21 |
# File 'lib/repo_tender/state/store.rb', line 19 def default_branch @default_branch end |
#last_error ⇒ Object (readonly)
Returns the value of attribute last_error
19 20 21 |
# File 'lib/repo_tender/state/store.rb', line 19 def last_error @last_error end |
#last_fetch_at ⇒ Object (readonly)
Returns the value of attribute last_fetch_at
19 20 21 |
# File 'lib/repo_tender/state/store.rb', line 19 def last_fetch_at @last_fetch_at end |
#last_synced_at ⇒ Object (readonly)
Returns the value of attribute last_synced_at
19 20 21 |
# File 'lib/repo_tender/state/store.rb', line 19 def last_synced_at @last_synced_at end |
#status ⇒ Object (readonly)
Returns the value of attribute status
19 20 21 |
# File 'lib/repo_tender/state/store.rb', line 19 def status @status end |
Instance Method Details
#to_h_compact ⇒ Object
24 25 26 27 28 29 30 31 32 |
# File 'lib/repo_tender/state/store.rb', line 24 def to_h_compact { "default_branch" => default_branch, "last_fetch_at" => format_time(last_fetch_at), "last_synced_at" => format_time(last_synced_at), "status" => status, "last_error" => last_error }.compact end |