Class: Pexels::User
- Inherits:
-
Object
- Object
- Pexels::User
- Defined in:
- lib/pexels/user.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(id:, name:, url:) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(id:, name:, url:) ⇒ User
Returns a new instance of User.
4 5 6 7 8 |
# File 'lib/pexels/user.rb', line 4 def initialize(id:, name:, url:) @id = id @name = name @url = url end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
2 3 4 |
# File 'lib/pexels/user.rb', line 2 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
2 3 4 |
# File 'lib/pexels/user.rb', line 2 def name @name end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
2 3 4 |
# File 'lib/pexels/user.rb', line 2 def url @url end |