Class: Cameraplus::PageMetadata
- Inherits:
-
Object
- Object
- Cameraplus::PageMetadata
- Defined in:
- lib/cameraplus/page_metadata.rb
Instance Attribute Summary collapse
-
#comment_count ⇒ Object
readonly
Returns the value of attribute comment_count.
-
#comments ⇒ Object
readonly
Returns the value of attribute comments.
-
#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.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
-
#view_count ⇒ Object
readonly
Returns the value of attribute view_count.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data, identifier) ⇒ PageMetadata
constructor
A new instance of PageMetadata.
Constructor Details
#initialize(data, identifier) ⇒ PageMetadata
Returns a new instance of PageMetadata.
10 11 12 13 14 |
# File 'lib/cameraplus/page_metadata.rb', line 10 def initialize(data, identifier) @data = data @identifier = identifier parse end |
Instance Attribute Details
#comment_count ⇒ Object (readonly)
Returns the value of attribute comment_count.
4 5 6 |
# File 'lib/cameraplus/page_metadata.rb', line 4 def comment_count @comment_count end |
#comments ⇒ Object (readonly)
Returns the value of attribute comments.
4 5 6 |
# File 'lib/cameraplus/page_metadata.rb', line 4 def comments @comments end |
#created_at ⇒ Object (readonly)
Returns the value of attribute created_at.
4 5 6 |
# File 'lib/cameraplus/page_metadata.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_metadata.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_metadata.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_metadata.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_metadata.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_metadata.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_metadata.rb', line 4 def url @url end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
4 5 6 |
# File 'lib/cameraplus/page_metadata.rb', line 4 def user @user end |
#view_count ⇒ Object (readonly)
Returns the value of attribute view_count.
4 5 6 |
# File 'lib/cameraplus/page_metadata.rb', line 4 def view_count @view_count end |
Class Method Details
.find(identifier, options = {}) ⇒ Object
6 7 8 |
# File 'lib/cameraplus/page_metadata.rb', line 6 def self.find(identifier, = {}) new Cameraplus::API::Page.find(identifier, ), identifier end |