Class: Cameraplus::PageMetadata

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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_countObject (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

#commentsObject (readonly)

Returns the value of attribute comments.



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

def comments
  @comments
end

#created_atObject (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

#locationObject (readonly)

Returns the value of attribute location.



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

def location
  @location
end

#location_nameObject (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

#photosObject (readonly)

Returns the value of attribute photos.



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

def photos
  @photos
end

#tweet_idObject (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_textObject (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

#urlObject (readonly)

Returns the value of attribute url.



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

def url
  @url
end

#userObject (readonly)

Returns the value of attribute user.



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

def user
  @user
end

#view_countObject (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, options = {})
  new Cameraplus::API::Page.find(identifier, options), identifier
end