Class: Pexels::User

Inherits:
Object
  • Object
show all
Defined in:
lib/pexels/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.


2
3
4
# File 'lib/pexels/user.rb', line 2

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.


2
3
4
# File 'lib/pexels/user.rb', line 2

def name
  @name
end

#urlObject (readonly)

Returns the value of attribute url.


2
3
4
# File 'lib/pexels/user.rb', line 2

def url
  @url
end