Class: Bitly::API::User::Email
- Inherits:
-
Object
- Object
- Bitly::API::User::Email
- Defined in:
- lib/bitly/api/user.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#is_primary ⇒ Object
readonly
Returns the value of attribute is_primary.
-
#is_verified ⇒ Object
readonly
Returns the value of attribute is_verified.
Instance Method Summary collapse
-
#initialize(data) ⇒ Email
constructor
A new instance of Email.
Constructor Details
#initialize(data) ⇒ Email
Returns a new instance of Email.
11 12 13 14 15 |
# File 'lib/bitly/api/user.rb', line 11 def initialize(data) @email = data["email"] @is_verified = data["is_verified"] @is_primary = data["is_primary"] end |
Instance Attribute Details
#email ⇒ Object (readonly)
Returns the value of attribute email.
10 11 12 |
# File 'lib/bitly/api/user.rb', line 10 def email @email end |
#is_primary ⇒ Object (readonly)
Returns the value of attribute is_primary.
10 11 12 |
# File 'lib/bitly/api/user.rb', line 10 def is_primary @is_primary end |
#is_verified ⇒ Object (readonly)
Returns the value of attribute is_verified.
10 11 12 |
# File 'lib/bitly/api/user.rb', line 10 def is_verified @is_verified end |