Class: GoogleImages::Auth

Inherits:
Object
  • Object
show all
Defined in:
lib/google_images/auth.rb

Overview

A value-object which stores Google API authentication information

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key, cx) ⇒ Auth

Returns a new instance of Auth.



6
7
8
9
# File 'lib/google_images/auth.rb', line 6

def initialize(key, cx)
  @key = key
  @cx = cx
end

Instance Attribute Details

#cxObject (readonly)

Returns the value of attribute cx.



4
5
6
# File 'lib/google_images/auth.rb', line 4

def cx
  @cx
end

#keyObject (readonly)

Returns the value of attribute key.



4
5
6
# File 'lib/google_images/auth.rb', line 4

def key
  @key
end