Class: MirrorGithub::Repository
- Inherits:
-
Object
- Object
- MirrorGithub::Repository
- Defined in:
- lib/mirror_github/repository.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#html_url ⇒ Object
Returns the value of attribute html_url.
-
#name ⇒ Object
Returns the value of attribute name.
-
#private ⇒ Object
(also: #private?)
Returns the value of attribute private.
-
#pushed_at ⇒ Object
Returns the value of attribute pushed_at.
-
#ssh_url ⇒ Object
Returns the value of attribute ssh_url.
Instance Method Summary collapse
-
#initialize(input = {}) ⇒ Repository
constructor
A new instance of Repository.
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_at ⇒ Object
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_url ⇒ Object
Returns the value of attribute html_url.
3 4 5 |
# File 'lib/mirror_github/repository.rb', line 3 def html_url @html_url end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/mirror_github/repository.rb', line 3 def name @name end |
#private ⇒ Object 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_at ⇒ Object
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_url ⇒ Object
Returns the value of attribute ssh_url.
3 4 5 |
# File 'lib/mirror_github/repository.rb', line 3 def ssh_url @ssh_url end |