Class: Tinybucket::Model::BuildStatus
Overview
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from Base
#attributes, #attributes=, concern_included?, #initialize
Instance Attribute Details
#description ⇒ String
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# File 'lib/tinybucket/model/build_status.rb', line 24
class BuildStatus < Base
include Tinybucket::Model::Concerns::RepositoryKeys
include Tinybucket::Model::Concerns::Reloadable
acceptable_attributes \
:state, :type, :key, :name, :url, :description, :links, \
:created_on, :updated_on
attr_accessor :revision
def update(options)
build_status_api.put(revision, key, options).tap do |m|
m.repo_keys = repo_keys
m.revision = revision
end
end
private
def build_status_api
create_api('BuildStatus', repo_keys)
end
def load_model
build_status_api.find(revision, key)
end
end
|
#key ⇒ String
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# File 'lib/tinybucket/model/build_status.rb', line 24
class BuildStatus < Base
include Tinybucket::Model::Concerns::RepositoryKeys
include Tinybucket::Model::Concerns::Reloadable
acceptable_attributes \
:state, :type, :key, :name, :url, :description, :links, \
:created_on, :updated_on
attr_accessor :revision
def update(options)
build_status_api.put(revision, key, options).tap do |m|
m.repo_keys = repo_keys
m.revision = revision
end
end
private
def build_status_api
create_api('BuildStatus', repo_keys)
end
def load_model
build_status_api.find(revision, key)
end
end
|
#links ⇒ Hash
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# File 'lib/tinybucket/model/build_status.rb', line 24
class BuildStatus < Base
include Tinybucket::Model::Concerns::RepositoryKeys
include Tinybucket::Model::Concerns::Reloadable
acceptable_attributes \
:state, :type, :key, :name, :url, :description, :links, \
:created_on, :updated_on
attr_accessor :revision
def update(options)
build_status_api.put(revision, key, options).tap do |m|
m.repo_keys = repo_keys
m.revision = revision
end
end
private
def build_status_api
create_api('BuildStatus', repo_keys)
end
def load_model
build_status_api.find(revision, key)
end
end
|
#name ⇒ String
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# File 'lib/tinybucket/model/build_status.rb', line 24
class BuildStatus < Base
include Tinybucket::Model::Concerns::RepositoryKeys
include Tinybucket::Model::Concerns::Reloadable
acceptable_attributes \
:state, :type, :key, :name, :url, :description, :links, \
:created_on, :updated_on
attr_accessor :revision
def update(options)
build_status_api.put(revision, key, options).tap do |m|
m.repo_keys = repo_keys
m.revision = revision
end
end
private
def build_status_api
create_api('BuildStatus', repo_keys)
end
def load_model
build_status_api.find(revision, key)
end
end
|
#revision ⇒ Object
Returns the value of attribute revision.
32
33
34
|
# File 'lib/tinybucket/model/build_status.rb', line 32
def revision
@revision
end
|
#state ⇒ String
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# File 'lib/tinybucket/model/build_status.rb', line 24
class BuildStatus < Base
include Tinybucket::Model::Concerns::RepositoryKeys
include Tinybucket::Model::Concerns::Reloadable
acceptable_attributes \
:state, :type, :key, :name, :url, :description, :links, \
:created_on, :updated_on
attr_accessor :revision
def update(options)
build_status_api.put(revision, key, options).tap do |m|
m.repo_keys = repo_keys
m.revision = revision
end
end
private
def build_status_api
create_api('BuildStatus', repo_keys)
end
def load_model
build_status_api.find(revision, key)
end
end
|
#type ⇒ String
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# File 'lib/tinybucket/model/build_status.rb', line 24
class BuildStatus < Base
include Tinybucket::Model::Concerns::RepositoryKeys
include Tinybucket::Model::Concerns::Reloadable
acceptable_attributes \
:state, :type, :key, :name, :url, :description, :links, \
:created_on, :updated_on
attr_accessor :revision
def update(options)
build_status_api.put(revision, key, options).tap do |m|
m.repo_keys = repo_keys
m.revision = revision
end
end
private
def build_status_api
create_api('BuildStatus', repo_keys)
end
def load_model
build_status_api.find(revision, key)
end
end
|
#url ⇒ String
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# File 'lib/tinybucket/model/build_status.rb', line 24
class BuildStatus < Base
include Tinybucket::Model::Concerns::RepositoryKeys
include Tinybucket::Model::Concerns::Reloadable
acceptable_attributes \
:state, :type, :key, :name, :url, :description, :links, \
:created_on, :updated_on
attr_accessor :revision
def update(options)
build_status_api.put(revision, key, options).tap do |m|
m.repo_keys = repo_keys
m.revision = revision
end
end
private
def build_status_api
create_api('BuildStatus', repo_keys)
end
def load_model
build_status_api.find(revision, key)
end
end
|
Instance Method Details
39
40
41
42
43
44
|
# File 'lib/tinybucket/model/build_status.rb', line 39
def update(options)
build_status_api.put(revision, key, options).tap do |m|
m.repo_keys = repo_keys
m.revision = revision
end
end
|