Method: Unsplash::Client#initialize

Defined in:
lib/unsplash/client.rb

#initialize(attrs = {}) ⇒ Client

Build an Unsplash object with the given attributes.

Parameters:

  • attrs (Hash) (defaults to: {})


8
9
10
11
# File 'lib/unsplash/client.rb', line 8

def initialize(attrs = {})
  @attributes = OpenStruct.new(attrs)
  add_utm_to_links
end