Class: Zomato2::User

Inherits:
EntityBase show all
Defined in:
lib/zomato2/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from EntityBase

#get

Constructor Details

#initialize(zom_conn, attributes) ⇒ User

Returns a new instance of User.



7
8
9
10
11
12
13
14
15
16
# File 'lib/zomato2/user.rb', line 7

def initialize(zom_conn, attributes)
  super(zom_conn)
  self.instance_variables.each do |att|
    if att === :@zom_conn
      next
    else
      self.instance_variable_set attributes[att]
    end
  end
end

Instance Attribute Details

#foodie_colorObject (readonly)

Returns the value of attribute foodie_color.



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

def foodie_color
  @foodie_color
end

#foodie_levelObject (readonly)

Returns the value of attribute foodie_level.



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

def foodie_level
  @foodie_level
end

#foodie_level_numObject (readonly)

Returns the value of attribute foodie_level_num.



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

def foodie_level_num
  @foodie_level_num
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end

Returns the value of attribute profile_deeplink.



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

def profile_deeplink
  @profile_deeplink
end

#profile_imageObject (readonly)

Returns the value of attribute profile_image.



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

def profile_image
  @profile_image
end

#profile_urlObject (readonly)

Returns the value of attribute profile_url.



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

def profile_url
  @profile_url
end

#zomato_handleObject (readonly)

Returns the value of attribute zomato_handle.



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

def zomato_handle
  @zomato_handle
end

Instance Method Details

#to_sObject



18
# File 'lib/zomato2/user.rb', line 18

def to_s; super; end