Class: Yelp::Fusion::Responses::Models::User
- Defined in:
- lib/yelp/fusion/responses/models/user.rb
Overview
Model for the User JSON body
Instance Attribute Summary collapse
-
#image_url ⇒ Object
readonly
Returns the value of attribute image_url.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(json) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(json) ⇒ User
Returns a new instance of User.
32 33 34 |
# File 'lib/yelp/fusion/responses/models/user.rb', line 32 def initialize(json) super(json) end |
Instance Attribute Details
#image_url ⇒ Object (readonly)
Returns the value of attribute image_url.
31 32 33 |
# File 'lib/yelp/fusion/responses/models/user.rb', line 31 def image_url @image_url end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
31 32 33 |
# File 'lib/yelp/fusion/responses/models/user.rb', line 31 def name @name end |