Class: Octogate::GH::Repository
- Inherits:
-
Object
- Object
- Octogate::GH::Repository
- Includes:
- Model
- Defined in:
- lib/octogate/gh/repository.rb
Instance Attribute Summary collapse
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#description ⇒ Object
readonly
Returns the value of attribute description.
-
#fork ⇒ Object
readonly
Returns the value of attribute fork.
-
#forks ⇒ Object
readonly
Returns the value of attribute forks.
-
#has_downloads ⇒ Object
readonly
Returns the value of attribute has_downloads.
-
#has_issues ⇒ Object
readonly
Returns the value of attribute has_issues.
-
#has_wiki ⇒ Object
readonly
Returns the value of attribute has_wiki.
-
#homepage ⇒ Object
readonly
Returns the value of attribute homepage.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#language ⇒ Object
readonly
Returns the value of attribute language.
-
#master_branch ⇒ Object
readonly
Returns the value of attribute master_branch.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#open_issues ⇒ Object
readonly
Returns the value of attribute open_issues.
-
#owner ⇒ Object
readonly
Returns the value of attribute owner.
-
#private ⇒ Object
readonly
Returns the value of attribute private.
-
#pushed_at ⇒ Object
readonly
Returns the value of attribute pushed_at.
-
#pusher ⇒ Object
readonly
Returns the value of attribute pusher.
-
#size ⇒ Object
readonly
Returns the value of attribute size.
-
#stargazers ⇒ Object
readonly
Returns the value of attribute stargazers.
-
#watchers ⇒ Object
readonly
Returns the value of attribute watchers.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Repository
constructor
A new instance of Repository.
Constructor Details
#initialize(**args) ⇒ Repository
Returns a new instance of Repository.
7 8 9 10 11 |
# File 'lib/octogate/gh/repository.rb', line 7 def initialize(**args) new_args = args.deep_symbolize_keys new_args[:owner] = GH::User.new(new_args[:owner]) if new_args[:owner] super(new_args) end |
Instance Attribute Details
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
5 6 7 |
# File 'lib/octogate/gh/repository.rb', line 5 def created_at @created_at end |
#description ⇒ Object (readonly)
Returns the value of attribute description.
5 6 7 |
# File 'lib/octogate/gh/repository.rb', line 5 def description @description end |
#fork ⇒ Object (readonly)
Returns the value of attribute fork.
5 6 7 |
# File 'lib/octogate/gh/repository.rb', line 5 def fork @fork end |
#forks ⇒ Object (readonly)
Returns the value of attribute forks.
5 6 7 |
# File 'lib/octogate/gh/repository.rb', line 5 def forks @forks end |
#has_downloads ⇒ Object (readonly)
Returns the value of attribute has_downloads.
5 6 7 |
# File 'lib/octogate/gh/repository.rb', line 5 def has_downloads @has_downloads end |
#has_issues ⇒ Object (readonly)
Returns the value of attribute has_issues.
5 6 7 |
# File 'lib/octogate/gh/repository.rb', line 5 def has_issues @has_issues end |
#has_wiki ⇒ Object (readonly)
Returns the value of attribute has_wiki.
5 6 7 |
# File 'lib/octogate/gh/repository.rb', line 5 def has_wiki @has_wiki end |
#homepage ⇒ Object (readonly)
Returns the value of attribute homepage.
5 6 7 |
# File 'lib/octogate/gh/repository.rb', line 5 def homepage @homepage end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
5 6 7 |
# File 'lib/octogate/gh/repository.rb', line 5 def id @id end |
#language ⇒ Object (readonly)
Returns the value of attribute language.
5 6 7 |
# File 'lib/octogate/gh/repository.rb', line 5 def language @language end |
#master_branch ⇒ Object (readonly)
Returns the value of attribute master_branch.
5 6 7 |
# File 'lib/octogate/gh/repository.rb', line 5 def master_branch @master_branch end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
5 6 7 |
# File 'lib/octogate/gh/repository.rb', line 5 def name @name end |
#open_issues ⇒ Object (readonly)
Returns the value of attribute open_issues.
5 6 7 |
# File 'lib/octogate/gh/repository.rb', line 5 def open_issues @open_issues end |
#owner ⇒ Object (readonly)
Returns the value of attribute owner.
5 6 7 |
# File 'lib/octogate/gh/repository.rb', line 5 def owner @owner end |
#private ⇒ Object (readonly)
Returns the value of attribute private.
5 6 7 |
# File 'lib/octogate/gh/repository.rb', line 5 def private @private end |
#pushed_at ⇒ Object (readonly)
Returns the value of attribute pushed_at.
5 6 7 |
# File 'lib/octogate/gh/repository.rb', line 5 def pushed_at @pushed_at end |
#pusher ⇒ Object (readonly)
Returns the value of attribute pusher.
5 6 7 |
# File 'lib/octogate/gh/repository.rb', line 5 def pusher @pusher end |
#size ⇒ Object (readonly)
Returns the value of attribute size.
5 6 7 |
# File 'lib/octogate/gh/repository.rb', line 5 def size @size end |
#stargazers ⇒ Object (readonly)
Returns the value of attribute stargazers.
5 6 7 |
# File 'lib/octogate/gh/repository.rb', line 5 def stargazers @stargazers end |
#watchers ⇒ Object (readonly)
Returns the value of attribute watchers.
5 6 7 |
# File 'lib/octogate/gh/repository.rb', line 5 def watchers @watchers end |