Class: Gemini::Controllers::Client
- Inherits:
-
Object
- Object
- Gemini::Controllers::Client
- Defined in:
- lib/rach/initializers/google_client.rb
Instance Attribute Summary collapse
-
#model_address ⇒ Object
Returns the value of attribute model_address.
Instance Method Summary collapse
Instance Attribute Details
#model_address ⇒ Object
Returns the value of attribute model_address.
4 5 6 |
# File 'lib/rach/initializers/google_client.rb', line 4 def model_address @model_address end |
Instance Method Details
#model ⇒ Object
6 7 8 |
# File 'lib/rach/initializers/google_client.rb', line 6 def model @model_address.split('models/').last end |
#model=(new_model) ⇒ Object
10 11 12 |
# File 'lib/rach/initializers/google_client.rb', line 10 def model=(new_model) @model_address = "models/#{new_model}" end |