Class: Cameraplus::Page
- Inherits:
-
Object
- Object
- Cameraplus::Page
- Defined in:
- lib/cameraplus/page.rb
Instance Attribute Summary collapse
-
#comment_count ⇒ Object
readonly
Returns the value of attribute comment_count.
-
#created_at ⇒ Object
readonly
Returns the value of attribute created_at.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#location_name ⇒ Object
readonly
Returns the value of attribute location_name.
-
#photos ⇒ Object
readonly
Returns the value of attribute photos.
-
#tweet_id ⇒ Object
readonly
Returns the value of attribute tweet_id.
-
#tweet_text ⇒ Object
readonly
Returns the value of attribute tweet_text.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
-
#view_count ⇒ Object
readonly
Returns the value of attribute view_count.
Instance Method Summary collapse
-
#initialize(data) ⇒ Page
constructor
A new instance of Page.
Constructor Details
#initialize(data) ⇒ Page
Returns a new instance of Page.
6 7 8 9 |
# File 'lib/cameraplus/page.rb', line 6 def initialize(data) @data = data parse end |
Instance Attribute Details
#comment_count ⇒ Object (readonly)
Returns the value of attribute comment_count.
4 5 6 |
# File 'lib/cameraplus/page.rb', line 4 def comment_count @comment_count end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/cameraplus/page.rb', line 4 def created_at @created_at end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
4 5 6 |
# File 'lib/cameraplus/page.rb', line 4 def location @location end |
#location_name ⇒ Object (readonly)
Returns the value of attribute location_name.
4 5 6 |
# File 'lib/cameraplus/page.rb', line 4 def location_name @location_name end |
#photos ⇒ Object (readonly)
Returns the value of attribute photos.
4 5 6 |
# File 'lib/cameraplus/page.rb', line 4 def photos @photos end |
#tweet_id ⇒ Object (readonly)
Returns the value of attribute tweet_id.
4 5 6 |
# File 'lib/cameraplus/page.rb', line 4 def tweet_id @tweet_id end |
#tweet_text ⇒ Object (readonly)
Returns the value of attribute tweet_text.
4 5 6 |
# File 'lib/cameraplus/page.rb', line 4 def tweet_text @tweet_text end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
4 5 6 |
# File 'lib/cameraplus/page.rb', line 4 def url @url end |
#view_count ⇒ Object (readonly)
Returns the value of attribute view_count.
4 5 6 |
# File 'lib/cameraplus/page.rb', line 4 def view_count @view_count end |