Class: Tinybucket::Model::Comment
Overview
Instance Attribute Summary collapse
Method Summary
Methods inherited from Base
#attributes, #attributes=, concern_included?, #initialize
Instance Attribute Details
39
40
41
|
# File 'lib/tinybucket/model/comment.rb', line 39
def
@commented_to
end
|
#content ⇒ Hash
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
56
57
58
59
60
61
62
63
64
65
|
# File 'lib/tinybucket/model/comment.rb', line 30
class Comment < Base
include Tinybucket::Model::Concerns::RepositoryKeys
acceptable_attributes \
:links, :id, :parent, :filename, :content, :user, :inline, \
:created_on, :updated_on, :uuid
attr_accessor :commented_to
private
def commit_api
create_api('Comments', repo_keys)
end
def pull_request_api
create_api('PullRequests', repo_keys)
end
def load_model
api =
case
when Tinybucket::Model::Commit
commit_api
when Tinybucket::Model::PullRequest
pull_request_api
else
raise ArgumentError, 'commented_to was invalid'
end
api. =
api.find(id, {})
end
end
|
#created_on ⇒ String
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
56
57
58
59
60
61
62
63
64
65
|
# File 'lib/tinybucket/model/comment.rb', line 30
class Comment < Base
include Tinybucket::Model::Concerns::RepositoryKeys
acceptable_attributes \
:links, :id, :parent, :filename, :content, :user, :inline, \
:created_on, :updated_on, :uuid
attr_accessor :commented_to
private
def commit_api
create_api('Comments', repo_keys)
end
def pull_request_api
create_api('PullRequests', repo_keys)
end
def load_model
api =
case
when Tinybucket::Model::Commit
commit_api
when Tinybucket::Model::PullRequest
pull_request_api
else
raise ArgumentError, 'commented_to was invalid'
end
api. =
api.find(id, {})
end
end
|
#filename ⇒ String
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
56
57
58
59
60
61
62
63
64
65
|
# File 'lib/tinybucket/model/comment.rb', line 30
class Comment < Base
include Tinybucket::Model::Concerns::RepositoryKeys
acceptable_attributes \
:links, :id, :parent, :filename, :content, :user, :inline, \
:created_on, :updated_on, :uuid
attr_accessor :commented_to
private
def commit_api
create_api('Comments', repo_keys)
end
def pull_request_api
create_api('PullRequests', repo_keys)
end
def load_model
api =
case
when Tinybucket::Model::Commit
commit_api
when Tinybucket::Model::PullRequest
pull_request_api
else
raise ArgumentError, 'commented_to was invalid'
end
api. =
api.find(id, {})
end
end
|
#id ⇒ Fixnum
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
56
57
58
59
60
61
62
63
64
65
|
# File 'lib/tinybucket/model/comment.rb', line 30
class Comment < Base
include Tinybucket::Model::Concerns::RepositoryKeys
acceptable_attributes \
:links, :id, :parent, :filename, :content, :user, :inline, \
:created_on, :updated_on, :uuid
attr_accessor :commented_to
private
def commit_api
create_api('Comments', repo_keys)
end
def pull_request_api
create_api('PullRequests', repo_keys)
end
def load_model
api =
case
when Tinybucket::Model::Commit
commit_api
when Tinybucket::Model::PullRequest
pull_request_api
else
raise ArgumentError, 'commented_to was invalid'
end
api. =
api.find(id, {})
end
end
|
#inline ⇒ Hash
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
56
57
58
59
60
61
62
63
64
65
|
# File 'lib/tinybucket/model/comment.rb', line 30
class Comment < Base
include Tinybucket::Model::Concerns::RepositoryKeys
acceptable_attributes \
:links, :id, :parent, :filename, :content, :user, :inline, \
:created_on, :updated_on, :uuid
attr_accessor :commented_to
private
def commit_api
create_api('Comments', repo_keys)
end
def pull_request_api
create_api('PullRequests', repo_keys)
end
def load_model
api =
case
when Tinybucket::Model::Commit
commit_api
when Tinybucket::Model::PullRequest
pull_request_api
else
raise ArgumentError, 'commented_to was invalid'
end
api. =
api.find(id, {})
end
end
|
#links ⇒ Hash
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
56
57
58
59
60
61
62
63
64
65
|
# File 'lib/tinybucket/model/comment.rb', line 30
class Comment < Base
include Tinybucket::Model::Concerns::RepositoryKeys
acceptable_attributes \
:links, :id, :parent, :filename, :content, :user, :inline, \
:created_on, :updated_on, :uuid
attr_accessor :commented_to
private
def commit_api
create_api('Comments', repo_keys)
end
def pull_request_api
create_api('PullRequests', repo_keys)
end
def load_model
api =
case
when Tinybucket::Model::Commit
commit_api
when Tinybucket::Model::PullRequest
pull_request_api
else
raise ArgumentError, 'commented_to was invalid'
end
api. =
api.find(id, {})
end
end
|
#parent ⇒ Hash
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
56
57
58
59
60
61
62
63
64
65
|
# File 'lib/tinybucket/model/comment.rb', line 30
class Comment < Base
include Tinybucket::Model::Concerns::RepositoryKeys
acceptable_attributes \
:links, :id, :parent, :filename, :content, :user, :inline, \
:created_on, :updated_on, :uuid
attr_accessor :commented_to
private
def commit_api
create_api('Comments', repo_keys)
end
def pull_request_api
create_api('PullRequests', repo_keys)
end
def load_model
api =
case
when Tinybucket::Model::Commit
commit_api
when Tinybucket::Model::PullRequest
pull_request_api
else
raise ArgumentError, 'commented_to was invalid'
end
api. =
api.find(id, {})
end
end
|
#updated_on ⇒ String
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
56
57
58
59
60
61
62
63
64
65
|
# File 'lib/tinybucket/model/comment.rb', line 30
class Comment < Base
include Tinybucket::Model::Concerns::RepositoryKeys
acceptable_attributes \
:links, :id, :parent, :filename, :content, :user, :inline, \
:created_on, :updated_on, :uuid
attr_accessor :commented_to
private
def commit_api
create_api('Comments', repo_keys)
end
def pull_request_api
create_api('PullRequests', repo_keys)
end
def load_model
api =
case
when Tinybucket::Model::Commit
commit_api
when Tinybucket::Model::PullRequest
pull_request_api
else
raise ArgumentError, 'commented_to was invalid'
end
api. =
api.find(id, {})
end
end
|
#user ⇒ Hash
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
56
57
58
59
60
61
62
63
64
65
|
# File 'lib/tinybucket/model/comment.rb', line 30
class Comment < Base
include Tinybucket::Model::Concerns::RepositoryKeys
acceptable_attributes \
:links, :id, :parent, :filename, :content, :user, :inline, \
:created_on, :updated_on, :uuid
attr_accessor :commented_to
private
def commit_api
create_api('Comments', repo_keys)
end
def pull_request_api
create_api('PullRequests', repo_keys)
end
def load_model
api =
case
when Tinybucket::Model::Commit
commit_api
when Tinybucket::Model::PullRequest
pull_request_api
else
raise ArgumentError, 'commented_to was invalid'
end
api. =
api.find(id, {})
end
end
|
#uuid ⇒ NillClass
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
56
57
58
59
60
61
62
63
64
65
|
# File 'lib/tinybucket/model/comment.rb', line 30
class Comment < Base
include Tinybucket::Model::Concerns::RepositoryKeys
acceptable_attributes \
:links, :id, :parent, :filename, :content, :user, :inline, \
:created_on, :updated_on, :uuid
attr_accessor :commented_to
private
def commit_api
create_api('Comments', repo_keys)
end
def pull_request_api
create_api('PullRequests', repo_keys)
end
def load_model
api =
case
when Tinybucket::Model::Commit
commit_api
when Tinybucket::Model::PullRequest
pull_request_api
else
raise ArgumentError, 'commented_to was invalid'
end
api. =
api.find(id, {})
end
end
|