Class: Tinybucket::Model::Tag
Overview
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from Base
#attributes, #attributes=, concern_included?, #initialize
Instance Attribute Details
#links ⇒ Hash
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# File 'lib/tinybucket/model/tag.rb', line 20
class Tag < Base
include Tinybucket::Model::Concerns::RepositoryKeys
acceptable_attributes :links, :type, :name, :repository, :target, :tagger, :date, :message
def commits(options = {})
commits_resource.tag(name, options)
end
private
def commits_resource(options = {})
Tinybucket::Resource::Commits.new(self, options)
end
def tags_api
create_api('Tags', repo_keys)
end
def load_model
tags_api.find(name, {})
end
end
|
#name ⇒ String
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# File 'lib/tinybucket/model/tag.rb', line 20
class Tag < Base
include Tinybucket::Model::Concerns::RepositoryKeys
acceptable_attributes :links, :type, :name, :repository, :target, :tagger, :date, :message
def commits(options = {})
commits_resource.tag(name, options)
end
private
def commits_resource(options = {})
Tinybucket::Resource::Commits.new(self, options)
end
def tags_api
create_api('Tags', repo_keys)
end
def load_model
tags_api.find(name, {})
end
end
|
#repository ⇒ Hash
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# File 'lib/tinybucket/model/tag.rb', line 20
class Tag < Base
include Tinybucket::Model::Concerns::RepositoryKeys
acceptable_attributes :links, :type, :name, :repository, :target, :tagger, :date, :message
def commits(options = {})
commits_resource.tag(name, options)
end
private
def commits_resource(options = {})
Tinybucket::Resource::Commits.new(self, options)
end
def tags_api
create_api('Tags', repo_keys)
end
def load_model
tags_api.find(name, {})
end
end
|
#target ⇒ Hash
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# File 'lib/tinybucket/model/tag.rb', line 20
class Tag < Base
include Tinybucket::Model::Concerns::RepositoryKeys
acceptable_attributes :links, :type, :name, :repository, :target, :tagger, :date, :message
def commits(options = {})
commits_resource.tag(name, options)
end
private
def commits_resource(options = {})
Tinybucket::Resource::Commits.new(self, options)
end
def tags_api
create_api('Tags', repo_keys)
end
def load_model
tags_api.find(name, {})
end
end
|
#type ⇒ String
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
# File 'lib/tinybucket/model/tag.rb', line 20
class Tag < Base
include Tinybucket::Model::Concerns::RepositoryKeys
acceptable_attributes :links, :type, :name, :repository, :target, :tagger, :date, :message
def commits(options = {})
commits_resource.tag(name, options)
end
private
def commits_resource(options = {})
Tinybucket::Resource::Commits.new(self, options)
end
def tags_api
create_api('Tags', repo_keys)
end
def load_model
tags_api.find(name, {})
end
end
|
Instance Method Details
Returns the commits available for the specific tag
29
30
31
|
# File 'lib/tinybucket/model/tag.rb', line 29
def commits(options = {})
commits_resource.tag(name, options)
end
|