Class: Censys::Account
- Inherits:
-
Object
- Object
- Censys::Account
- Defined in:
- lib/censys/account.rb,
lib/censys/account/quota.rb
Defined Under Namespace
Classes: Quota
Instance Attribute Summary collapse
-
#api_id ⇒ Object
readonly
Returns the value of attribute api_id.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#first_login ⇒ Object
readonly
Returns the value of attribute first_login.
-
#last_login ⇒ Object
readonly
Returns the value of attribute last_login.
-
#login ⇒ Object
readonly
Returns the value of attribute login.
-
#quota ⇒ Object
readonly
Returns the value of attribute quota.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Account
constructor
A new instance of Account.
Constructor Details
#initialize(attributes) ⇒ Account
Returns a new instance of Account.
14 15 16 17 18 19 20 21 |
# File 'lib/censys/account.rb', line 14 def initialize(attributes) @api_id = attributes["api_id"] @email = attributes["email"] @first_login = attributes["first_login"] @last_login = attributes["last_login"] @login = attributes["login"] @quota = Quota.new(attributes["quota"]) end |
Instance Attribute Details
#api_id ⇒ Object (readonly)
Returns the value of attribute api_id.
7 8 9 |
# File 'lib/censys/account.rb', line 7 def api_id @api_id end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
8 9 10 |
# File 'lib/censys/account.rb', line 8 def email @email end |
#first_login ⇒ Object (readonly)
Returns the value of attribute first_login.
9 10 11 |
# File 'lib/censys/account.rb', line 9 def first_login @first_login end |
#last_login ⇒ Object (readonly)
Returns the value of attribute last_login.
10 11 12 |
# File 'lib/censys/account.rb', line 10 def last_login @last_login end |
#login ⇒ Object (readonly)
Returns the value of attribute login.
11 12 13 |
# File 'lib/censys/account.rb', line 11 def login @login end |
#quota ⇒ Object (readonly)
Returns the value of attribute quota.
12 13 14 |
# File 'lib/censys/account.rb', line 12 def quota @quota end |