Class: Cameraplus::Comment
- Inherits:
-
Object
- Object
- Cameraplus::Comment
- Defined in:
- lib/cameraplus/comment.rb
Instance Attribute Summary collapse
-
#author ⇒ Object
readonly
Returns the value of attribute author.
-
#avatar ⇒ Object
readonly
Returns the value of attribute avatar.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(data) ⇒ Comment
constructor
A new instance of Comment.
Constructor Details
#initialize(data) ⇒ Comment
Returns a new instance of Comment.
6 7 8 9 10 11 |
# File 'lib/cameraplus/comment.rb', line 6 def initialize(data) @author = data. @avatar = data.avatar @url = data.url @text = data.text end |
Instance Attribute Details
#author ⇒ Object (readonly)
Returns the value of attribute author.
4 5 6 |
# File 'lib/cameraplus/comment.rb', line 4 def @author end |
#avatar ⇒ Object (readonly)
Returns the value of attribute avatar.
4 5 6 |
# File 'lib/cameraplus/comment.rb', line 4 def avatar @avatar end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
4 5 6 |
# File 'lib/cameraplus/comment.rb', line 4 def text @text end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
4 5 6 |
# File 'lib/cameraplus/comment.rb', line 4 def url @url end |