Class: Cameraplus::Page

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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_countObject (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_atObject (readonly)

Returns the value of attribute created_at.



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

def created_at
  @created_at
end

#locationObject (readonly)

Returns the value of attribute location.



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

def location
  @location
end

#location_nameObject (readonly)

Returns the value of attribute location_name.



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

def location_name
  @location_name
end

#photosObject (readonly)

Returns the value of attribute photos.



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

def photos
  @photos
end

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

Returns the value of attribute tweet_text.



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

def tweet_text
  @tweet_text
end

#urlObject (readonly)

Returns the value of attribute url.



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

def url
  @url
end

#view_countObject (readonly)

Returns the value of attribute view_count.



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

def view_count
  @view_count
end