Class: Zomato2::User
- Inherits:
-
EntityBase
- Object
- EntityBase
- Zomato2::User
- Defined in:
- lib/zomato2/user.rb
Instance Attribute Summary collapse
-
#foodie_color ⇒ Object
readonly
Returns the value of attribute foodie_color.
-
#foodie_level ⇒ Object
readonly
Returns the value of attribute foodie_level.
-
#foodie_level_num ⇒ Object
readonly
Returns the value of attribute foodie_level_num.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#profile_deeplink ⇒ Object
readonly
Returns the value of attribute profile_deeplink.
-
#profile_image ⇒ Object
readonly
Returns the value of attribute profile_image.
-
#profile_url ⇒ Object
readonly
Returns the value of attribute profile_url.
-
#zomato_handle ⇒ Object
readonly
Returns the value of attribute zomato_handle.
Instance Method Summary collapse
-
#initialize(zom_conn, attributes) ⇒ User
constructor
A new instance of User.
- #to_s ⇒ Object
Methods inherited from EntityBase
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_color ⇒ Object (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_level ⇒ Object (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_num ⇒ Object (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 |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/zomato2/user.rb', line 4 def name @name end |
#profile_deeplink ⇒ Object (readonly)
Returns the value of attribute profile_deeplink.
4 5 6 |
# File 'lib/zomato2/user.rb', line 4 def profile_deeplink @profile_deeplink end |
#profile_image ⇒ Object (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_url ⇒ Object (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_handle ⇒ Object (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_s ⇒ Object
18 |
# File 'lib/zomato2/user.rb', line 18 def to_s; super; end |