Class: MirrorGithub::Repository

Inherits:
Object
  • Object
show all
Defined in:
lib/mirror_github/repository.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(input = {}) ⇒ Repository

Returns a new instance of Repository.



6
7
8
9
10
# File 'lib/mirror_github/repository.rb', line 6

def initialize(input = {})
  input.each do |k, v|
    self.send("#{k}=", v)
  end
end

Instance Attribute Details

#created_atObject

Returns the value of attribute created_at.



3
4
5
# File 'lib/mirror_github/repository.rb', line 3

def created_at
  @created_at
end

#html_urlObject

Returns the value of attribute html_url.



3
4
5
# File 'lib/mirror_github/repository.rb', line 3

def html_url
  @html_url
end

#nameObject

Returns the value of attribute name.



3
4
5
# File 'lib/mirror_github/repository.rb', line 3

def name
  @name
end

#privateObject Also known as: private?

Returns the value of attribute private.



3
4
5
# File 'lib/mirror_github/repository.rb', line 3

def private
  @private
end

#pushed_atObject

Returns the value of attribute pushed_at.



3
4
5
# File 'lib/mirror_github/repository.rb', line 3

def pushed_at
  @pushed_at
end

#ssh_urlObject

Returns the value of attribute ssh_url.



3
4
5
# File 'lib/mirror_github/repository.rb', line 3

def ssh_url
  @ssh_url
end