Class: Censys::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/censys/account.rb,
lib/censys/account/quota.rb

Defined Under Namespace

Classes: Quota

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject (readonly)

Returns the value of attribute api_id.



7
8
9
# File 'lib/censys/account.rb', line 7

def api_id
  @api_id
end

#emailObject (readonly)

Returns the value of attribute email.



8
9
10
# File 'lib/censys/account.rb', line 8

def email
  @email
end

#first_loginObject (readonly)

Returns the value of attribute first_login.



9
10
11
# File 'lib/censys/account.rb', line 9

def 
  @first_login
end

#last_loginObject (readonly)

Returns the value of attribute last_login.



10
11
12
# File 'lib/censys/account.rb', line 10

def 
  @last_login
end

#loginObject (readonly)

Returns the value of attribute login.



11
12
13
# File 'lib/censys/account.rb', line 11

def 
  @login
end

#quotaObject (readonly)

Returns the value of attribute quota.



12
13
14
# File 'lib/censys/account.rb', line 12

def quota
  @quota
end