Class: Figo::User
Overview
Object representing an User
Instance Attribute Summary collapse
-
#address ⇒ Dict
Postal address for bills, etc.
-
#email ⇒ String
Email address.
-
#join_date ⇒ DateTime
Timestamp of figo Account registration.
-
#language ⇒ String
Two-letter code of preferred language.
-
#name ⇒ String
First and last name.
-
#premium ⇒ Boolean
This flag indicates whether the figo Account plan is free or premium.
-
#premium_expires_on ⇒ DateTime
Timestamp of premium figo Account expiry.
-
#premium_subscription ⇒ String
Provider for premium subscription or nil of no subscription is active.
-
#send_newsletter ⇒ Boolean
This flag indicates whether the User has agreed to be contacted by email.
-
#User_id ⇒ String
Internal figo Connect User ID.
-
#verified_email ⇒ Boolean
This flag indicates whether the email address has been verified.
Instance Method Summary collapse
-
#initialize(session, json) ⇒ User
constructor
A new instance of User.
Methods inherited from Base
Constructor Details
#initialize(session, json) ⇒ User
Returns a new instance of User.
7 8 9 |
# File 'lib/user/model.rb', line 7 def initialize(session, json) super(session, json) end |
Instance Attribute Details
#address ⇒ Dict
Postal address for bills, etc.
25 26 27 |
# File 'lib/user/model.rb', line 25 def address @address end |
#email ⇒ String
Email address
21 22 23 |
# File 'lib/user/model.rb', line 21 def email @email end |
#join_date ⇒ DateTime
Timestamp of figo Account registration
53 54 55 |
# File 'lib/user/model.rb', line 53 def join_date @join_date end |
#language ⇒ String
Two-letter code of preferred language
37 38 39 |
# File 'lib/user/model.rb', line 37 def language @language end |
#name ⇒ String
First and last name
17 18 19 |
# File 'lib/user/model.rb', line 17 def name @name end |
#premium ⇒ Boolean
This flag indicates whether the figo Account plan is free or premium
41 42 43 |
# File 'lib/user/model.rb', line 41 def premium @premium end |
#premium_expires_on ⇒ DateTime
Timestamp of premium figo Account expiry
45 46 47 |
# File 'lib/user/model.rb', line 45 def premium_expires_on @premium_expires_on end |
#premium_subscription ⇒ String
Provider for premium subscription or nil of no subscription is active
49 50 51 |
# File 'lib/user/model.rb', line 49 def premium_subscription @premium_subscription end |
#send_newsletter ⇒ Boolean
This flag indicates whether the User has agreed to be contacted by email
33 34 35 |
# File 'lib/user/model.rb', line 33 def @send_newsletter end |
#User_id ⇒ String
Internal figo Connect User ID
13 14 15 |
# File 'lib/user/model.rb', line 13 def User_id @User_id end |
#verified_email ⇒ Boolean
This flag indicates whether the email address has been verified
29 30 31 |
# File 'lib/user/model.rb', line 29 def verified_email @verified_email end |