Class: GoogleImages::Auth
- Inherits:
-
Object
- Object
- GoogleImages::Auth
- Defined in:
- lib/google_images/auth.rb
Overview
A value-object which stores Google API authentication information
Instance Attribute Summary collapse
-
#cx ⇒ Object
readonly
Returns the value of attribute cx.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key, cx) ⇒ Auth
constructor
A new instance of Auth.
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
#cx ⇒ Object (readonly)
Returns the value of attribute cx.
4 5 6 |
# File 'lib/google_images/auth.rb', line 4 def cx @cx end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
4 5 6 |
# File 'lib/google_images/auth.rb', line 4 def key @key end |