Class: Bitreserve::Entities::User

Inherits:
BaseEntity show all
Defined in:
lib/bitreserve/entities/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseEntity

from_collection, #initialize

Constructor Details

This class inherits a constructor from Bitreserve::Entities::BaseEntity

Instance Attribute Details

#balancesObject (readonly)

Returns the value of attribute balances.



4
5
6
# File 'lib/bitreserve/entities/user.rb', line 4

def balances
  @balances
end

#countryObject (readonly)

Returns the value of attribute country.



4
5
6
# File 'lib/bitreserve/entities/user.rb', line 4

def country
  @country
end

#currenciesObject (readonly)

Returns the value of attribute currencies.



4
5
6
# File 'lib/bitreserve/entities/user.rb', line 4

def currencies
  @currencies
end

#emailObject (readonly)

Returns the value of attribute email.



4
5
6
# File 'lib/bitreserve/entities/user.rb', line 4

def email
  @email
end

#first_nameObject (readonly)

Returns the value of attribute first_name.



4
5
6
# File 'lib/bitreserve/entities/user.rb', line 4

def first_name
  @first_name
end

#last_nameObject (readonly)

Returns the value of attribute last_name.



4
5
6
# File 'lib/bitreserve/entities/user.rb', line 4

def last_name
  @last_name
end

#settingsObject (readonly)

Returns the value of attribute settings.



4
5
6
# File 'lib/bitreserve/entities/user.rb', line 4

def settings
  @settings
end

#stateObject (readonly)

Returns the value of attribute state.



4
5
6
# File 'lib/bitreserve/entities/user.rb', line 4

def state
  @state
end

#statusObject (readonly)

Returns the value of attribute status.



4
5
6
# File 'lib/bitreserve/entities/user.rb', line 4

def status
  @status
end

#usernameObject (readonly)

Returns the value of attribute username.



4
5
6
# File 'lib/bitreserve/entities/user.rb', line 4

def username
  @username
end

Instance Method Details

#cardsObject



10
11
12
# File 'lib/bitreserve/entities/user.rb', line 10

def cards
  @_cards ||= Entities::Card.from_collection(@cards)
end

#phonesObject



6
7
8
# File 'lib/bitreserve/entities/user.rb', line 6

def phones
  @_phones ||= Entities::Phone.from_collection(@phones)
end

#transactionsObject



14
15
16
# File 'lib/bitreserve/entities/user.rb', line 14

def transactions
  @_transactions ||= Entities::Transaction.from_collection(@transactions)
end