Class: Cameraplus::Comment

Inherits:
Object
  • Object
show all
Defined in:
lib/cameraplus/comment.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.author
  @avatar = data.avatar
  @url    = data.url
  @text   = data.text
end

Instance Attribute Details

#authorObject (readonly)

Returns the value of attribute author.



4
5
6
# File 'lib/cameraplus/comment.rb', line 4

def author
  @author
end

#avatarObject (readonly)

Returns the value of attribute avatar.



4
5
6
# File 'lib/cameraplus/comment.rb', line 4

def avatar
  @avatar
end

#textObject (readonly)

Returns the value of attribute text.



4
5
6
# File 'lib/cameraplus/comment.rb', line 4

def text
  @text
end

#urlObject (readonly)

Returns the value of attribute url.



4
5
6
# File 'lib/cameraplus/comment.rb', line 4

def url
  @url
end