Class: Mygithub::GithubAccessor::Repository

Inherits:
Object
  • Object
show all
Defined in:
lib/mygithub/github_accessor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_atObject

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_nameObject



38
39
40
# File 'lib/mygithub/github_accessor.rb', line 38

def full_name
  @repo.full_name
end