Class: Cameraplus::User
- Inherits:
-
Object
- Object
- Cameraplus::User
- Defined in:
- lib/cameraplus/user.rb
Instance Attribute Summary collapse
-
#avatar ⇒ Object
readonly
Returns the value of attribute avatar.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#page_count ⇒ Object
readonly
Returns the value of attribute page_count.
-
#pages ⇒ Object
readonly
Returns the value of attribute pages.
-
#photo_count ⇒ Object
readonly
Returns the value of attribute photo_count.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data) ⇒ User
constructor
A new instance of User.
- #more_results ⇒ Object
Constructor Details
#initialize(data) ⇒ User
Returns a new instance of User.
10 11 12 13 |
# File 'lib/cameraplus/user.rb', line 10 def initialize(data) @data = data parse end |
Instance Attribute Details
#avatar ⇒ Object (readonly)
Returns the value of attribute avatar.
4 5 6 |
# File 'lib/cameraplus/user.rb', line 4 def avatar @avatar end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
4 5 6 |
# File 'lib/cameraplus/user.rb', line 4 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/cameraplus/user.rb', line 4 def name @name end |
#page_count ⇒ Object (readonly)
Returns the value of attribute page_count.
4 5 6 |
# File 'lib/cameraplus/user.rb', line 4 def page_count @page_count end |
#pages ⇒ Object (readonly)
Returns the value of attribute pages.
4 5 6 |
# File 'lib/cameraplus/user.rb', line 4 def pages @pages end |
#photo_count ⇒ Object (readonly)
Returns the value of attribute photo_count.
4 5 6 |
# File 'lib/cameraplus/user.rb', line 4 def photo_count @photo_count end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
4 5 6 |
# File 'lib/cameraplus/user.rb', line 4 def username @username end |
Class Method Details
.find(identifier, options = {}) ⇒ Object
6 7 8 |
# File 'lib/cameraplus/user.rb', line 6 def self.find(identifier, = {}) new Cameraplus::API::User.find(identifier, ) end |