Class: BitbucketMigration::Api::Repository

Inherits:
Object
  • Object
show all
Defined in:
lib/bitbucket_migration/api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#languageObject

Returns the value of attribute language.



143
144
145
# File 'lib/bitbucket_migration/api.rb', line 143

def language
  @language
end

#nameObject

Returns the value of attribute name.



143
144
145
# File 'lib/bitbucket_migration/api.rb', line 143

def name
  @name
end

#ownerObject

Returns the value of attribute owner.



143
144
145
# File 'lib/bitbucket_migration/api.rb', line 143

def owner
  @owner
end

#scmObject

Returns the value of attribute scm.



143
144
145
# File 'lib/bitbucket_migration/api.rb', line 143

def scm
  @scm
end

#ssh_hrefObject

Returns the value of attribute ssh_href.



143
144
145
# File 'lib/bitbucket_migration/api.rb', line 143

def ssh_href
  @ssh_href
end