Class: Bitly::API::User::Email

Inherits:
Object
  • Object
show all
Defined in:
lib/bitly/api/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#emailObject (readonly)

Returns the value of attribute email.



10
11
12
# File 'lib/bitly/api/user.rb', line 10

def email
  @email
end

#is_primaryObject (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_verifiedObject (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