class Allegro::WebApi::User

Attributes

client[R]
my_data[R]

Public Class Methods

new(client) click to toggle source
# File lib/allegro/webapi/user.rb, line 7
def initialize(client)
  @client = client
end

Public Instance Methods

address() click to toggle source
# File lib/allegro/webapi/user.rb, line 41
def address
  my_data[:user_address]
end
birth_date() click to toggle source
# File lib/allegro/webapi/user.rb, line 37
def birth_date
  my_data[:user_birth_date]
end
city() click to toggle source
# File lib/allegro/webapi/user.rb, line 45
def city
  my_data[:user_city]
end
company() click to toggle source
# File lib/allegro/webapi/user.rb, line 16
def company
  my_data[:user_company]
end
do_get_my_data() click to toggle source
# File lib/allegro/webapi/user.rb, line 11
def do_get_my_data
  @my_data = client.call(:do_get_my_data, message: {session_handle: client.session_handle}).
      body[:do_get_my_data_response][:user_data]
end
email() click to toggle source
# File lib/allegro/webapi/user.rb, line 28
def email
  my_data[:user_email]
end
first_name() click to toggle source
# File lib/allegro/webapi/user.rb, line 49
def first_name
  my_data[:user_first_name]
end
id() click to toggle source
# File lib/allegro/webapi/user.rb, line 20
def id
  my_data[:user_id]
end
last_name() click to toggle source
# File lib/allegro/webapi/user.rb, line 53
def last_name
  my_data[:user_last_name]
end
phone() click to toggle source
# File lib/allegro/webapi/user.rb, line 32
def phone
  my_data[:user_phone]
end
rating() click to toggle source
# File lib/allegro/webapi/user.rb, line 24
def rating
  my_data[:user_rating]
end