Class: BitbucketMigration::Api::Repository
- Inherits:
-
Object
- Object
- BitbucketMigration::Api::Repository
- Defined in:
- lib/bitbucket_migration/api.rb
Instance Attribute Summary collapse
-
#language ⇒ Object
Returns the value of attribute language.
-
#name ⇒ Object
Returns the value of attribute name.
-
#owner ⇒ Object
Returns the value of attribute owner.
-
#scm ⇒ Object
Returns the value of attribute scm.
-
#ssh_href ⇒ Object
Returns the value of attribute ssh_href.
Instance Method Summary collapse
-
#initialize(data) ⇒ Repository
constructor
A new instance of Repository.
Constructor Details
#initialize(data) ⇒ Repository
Returns a new instance of Repository.
186 187 188 189 190 191 192 |
# File 'lib/bitbucket_migration/api.rb', line 186 def initialize(data) self.name =data['name'] self.scm =data['scm'] self.ssh_href =data['links']['clone'] self.owner =data['owner']['username'] self.language =data['language'] end |
Instance Attribute Details
#language ⇒ Object
Returns the value of attribute language.
143 144 145 |
# File 'lib/bitbucket_migration/api.rb', line 143 def language @language end |
#name ⇒ Object
Returns the value of attribute name.
143 144 145 |
# File 'lib/bitbucket_migration/api.rb', line 143 def name @name end |
#owner ⇒ Object
Returns the value of attribute owner.
143 144 145 |
# File 'lib/bitbucket_migration/api.rb', line 143 def owner @owner end |
#scm ⇒ Object
Returns the value of attribute scm.
143 144 145 |
# File 'lib/bitbucket_migration/api.rb', line 143 def scm @scm end |
#ssh_href ⇒ Object
Returns the value of attribute ssh_href.
143 144 145 |
# File 'lib/bitbucket_migration/api.rb', line 143 def ssh_href @ssh_href end |