Class: IseshimaStore::Connection
- Inherits:
-
Object
- Object
- IseshimaStore::Connection
- Defined in:
- lib/iseshima_store/connection.rb
Class Attribute Summary collapse
-
.config ⇒ Object
Returns the value of attribute config.
Class Method Summary collapse
Class Attribute Details
.config ⇒ Object
Returns the value of attribute config.
6 7 8 |
# File 'lib/iseshima_store/connection.rb', line 6 def config @config end |
Class Method Details
.configure {|config| ... } ⇒ Object
9 10 11 12 |
# File 'lib/iseshima_store/connection.rb', line 9 def self.configure(&block) self.config ||= OpenStruct.new yield(config) end |
.current ⇒ Object
14 15 16 |
# File 'lib/iseshima_store/connection.rb', line 14 def self.current @current ||= Gcloud.datastore(config.project_id) end |