Class: Pod::Thumbs::DependencyVote
- Inherits:
-
Object
- Object
- Pod::Thumbs::DependencyVote
- Defined in:
- lib/cocoapods-thumbs/dependency_vote.rb
Instance Attribute Summary collapse
-
#comment ⇒ Object
Returns the value of attribute comment.
-
#type ⇒ Object
Returns the value of attribute type.
-
#voter ⇒ Object
Returns the value of attribute voter.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ DependencyVote
constructor
A new instance of DependencyVote.
- #type_string ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ DependencyVote
Returns a new instance of DependencyVote.
11 12 13 14 15 |
# File 'lib/cocoapods-thumbs/dependency_vote.rb', line 11 def initialize( = {}) self.type = [:type] self.voter = [:voter] self.comment = [:comment] end |
Instance Attribute Details
#comment ⇒ Object
Returns the value of attribute comment.
9 10 11 |
# File 'lib/cocoapods-thumbs/dependency_vote.rb', line 9 def comment @comment end |
#type ⇒ Object
Returns the value of attribute type.
7 8 9 |
# File 'lib/cocoapods-thumbs/dependency_vote.rb', line 7 def type @type end |
#voter ⇒ Object
Returns the value of attribute voter.
8 9 10 |
# File 'lib/cocoapods-thumbs/dependency_vote.rb', line 8 def voter @voter end |
Instance Method Details
#type_string ⇒ Object
25 26 27 |
# File 'lib/cocoapods-thumbs/dependency_vote.rb', line 25 def type_string @type == :up ? "+".green : "-".red end |