Class: FlexBullet::User
- Inherits:
-
Object
- Object
- FlexBullet::User
- Defined in:
- lib/flex_bullet/user.rb
Instance Attribute Summary collapse
-
#auth ⇒ Object
readonly
Returns the value of attribute auth.
-
#client ⇒ Object
readonly
Returns the value of attribute client.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(email, authentication, name = '') ⇒ User
constructor
A new instance of User.
- #message(body) ⇒ Object
Constructor Details
#initialize(email, authentication, name = '') ⇒ User
Returns a new instance of User.
5 6 7 8 9 10 |
# File 'lib/flex_bullet/user.rb', line 5 def initialize (email, authentication, name = '') @email = email @name = name @auth = authentication @client = Pushbullet::Client.new(authentication) end |
Instance Attribute Details
#auth ⇒ Object (readonly)
Returns the value of attribute auth.
3 4 5 |
# File 'lib/flex_bullet/user.rb', line 3 def auth @auth end |
#client ⇒ Object (readonly)
Returns the value of attribute client.
3 4 5 |
# File 'lib/flex_bullet/user.rb', line 3 def client @client end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
3 4 5 |
# File 'lib/flex_bullet/user.rb', line 3 def email @email end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/flex_bullet/user.rb', line 3 def name @name end |