Class: RepoTender::State::Store::Org
- Inherits:
-
Data
- Object
- Data
- RepoTender::State::Store::Org
- Defined in:
- lib/repo_tender/state/store.rb
Instance Attribute Summary collapse
-
#last_error ⇒ Object
readonly
Returns the value of attribute last_error.
-
#last_listed_at ⇒ Object
readonly
Returns the value of attribute last_listed_at.
-
#repo_count ⇒ Object
readonly
Returns the value of attribute repo_count.
Instance Method Summary collapse
-
#initialize(last_listed_at: nil, repo_count: 0, last_error: nil) ⇒ Org
constructor
A new instance of Org.
- #to_h_compact ⇒ Object
Constructor Details
#initialize(last_listed_at: nil, repo_count: 0, last_error: nil) ⇒ Org
Returns a new instance of Org.
42 43 44 |
# File 'lib/repo_tender/state/store.rb', line 42 def initialize(last_listed_at: nil, repo_count: 0, last_error: nil) super end |
Instance Attribute Details
#last_error ⇒ Object (readonly)
Returns the value of attribute last_error
41 42 43 |
# File 'lib/repo_tender/state/store.rb', line 41 def last_error @last_error end |
#last_listed_at ⇒ Object (readonly)
Returns the value of attribute last_listed_at
41 42 43 |
# File 'lib/repo_tender/state/store.rb', line 41 def last_listed_at @last_listed_at end |
#repo_count ⇒ Object (readonly)
Returns the value of attribute repo_count
41 42 43 |
# File 'lib/repo_tender/state/store.rb', line 41 def repo_count @repo_count end |
Instance Method Details
#to_h_compact ⇒ Object
46 47 48 49 50 51 52 |
# File 'lib/repo_tender/state/store.rb', line 46 def to_h_compact { "last_listed_at" => format_time(last_listed_at), "repo_count" => repo_count, "last_error" => last_error }.compact end |