Class: Mygithub::GithubAccessor::Repository
- Inherits:
-
Object
- Object
- Mygithub::GithubAccessor::Repository
- Defined in:
- lib/mygithub/github_accessor.rb
Instance Attribute Summary collapse
-
#pushed_at ⇒ Object
Returns the value of attribute pushed_at.
Instance Method Summary collapse
- #full_name ⇒ Object
-
#initialize(repo) ⇒ Repository
constructor
A new instance of Repository.
Constructor Details
#initialize(repo) ⇒ Repository
Returns a new instance of Repository.
33 34 35 36 |
# File 'lib/mygithub/github_accessor.rb', line 33 def initialize(repo) @repo = repo @pushed_at = DateTime.parse(repo.pushed_at) end |
Instance Attribute Details
#pushed_at ⇒ Object
Returns the value of attribute pushed_at.
31 32 33 |
# File 'lib/mygithub/github_accessor.rb', line 31 def pushed_at @pushed_at end |
Instance Method Details
#full_name ⇒ Object
38 39 40 |
# File 'lib/mygithub/github_accessor.rb', line 38 def full_name @repo.full_name end |