Class: Snapcat::User
- Inherits:
-
Object
- Object
- Snapcat::User
- Defined in:
- lib/snapcat/user.rb
Defined Under Namespace
Modules: Privacy
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#friends ⇒ Object
readonly
Returns the value of attribute friends.
-
#snaps_received ⇒ Object
readonly
Returns the value of attribute snaps_received.
-
#snaps_sent ⇒ Object
readonly
Returns the value of attribute snaps_sent.
Instance Method Summary collapse
-
#initialize ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize ⇒ User
Returns a new instance of User.
10 11 12 13 14 |
# File 'lib/snapcat/user.rb', line 10 def initialize @friends = [] @snaps_sent = [] @snaps_received = [] end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
8 9 10 |
# File 'lib/snapcat/user.rb', line 8 def data @data end |
#friends ⇒ Object (readonly)
Returns the value of attribute friends.
8 9 10 |
# File 'lib/snapcat/user.rb', line 8 def friends @friends end |
#snaps_received ⇒ Object (readonly)
Returns the value of attribute snaps_received.
8 9 10 |
# File 'lib/snapcat/user.rb', line 8 def snaps_received @snaps_received end |
#snaps_sent ⇒ Object (readonly)
Returns the value of attribute snaps_sent.
8 9 10 |
# File 'lib/snapcat/user.rb', line 8 def snaps_sent @snaps_sent end |