Class: Mystro::Cloud::Connect

Inherits:
Object
  • Object
show all
Defined in:
lib/mystro/cloud/connect.rb

Direct Known Subclasses

Fog::Connect

Class Attribute Summary collapse

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options, config) ⇒ Connect

Returns a new instance of Connect.



6
7
8
9
# File 'lib/mystro/cloud/connect.rb', line 6

def initialize(options, config)
  @options = options
  @config = config
end

Class Attribute Details

.collectionObject (readonly)

Returns the value of attribute collection.



48
49
50
# File 'lib/mystro/cloud/connect.rb', line 48

def collection
  @collection
end

.decodersObject (readonly)

Returns the value of attribute decoders.



48
49
50
# File 'lib/mystro/cloud/connect.rb', line 48

def decoders
  @decoders
end

.klassObject (readonly)

Returns the value of attribute klass.



48
49
50
# File 'lib/mystro/cloud/connect.rb', line 48

def klass
  @klass
end

.modelObject (readonly)

Returns the value of attribute model.



48
49
50
# File 'lib/mystro/cloud/connect.rb', line 48

def model
  @model
end

Instance Attribute Details

#configObject (readonly)

Returns the value of attribute config.



4
5
6
# File 'lib/mystro/cloud/connect.rb', line 4

def config
  @config
end

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/mystro/cloud/connect.rb', line 4

def options
  @options
end

Instance Method Details

#allObject



11
12
13
# File 'lib/mystro/cloud/connect.rb', line 11

def all
  raise "not implemented"
end

#create(model) ⇒ Object



19
20
21
# File 'lib/mystro/cloud/connect.rb', line 19

def create(model)
  raise "not implemented"
end

#decode(object) ⇒ Object



32
33
34
35
# File 'lib/mystro/cloud/connect.rb', line 32

def decode(object)
  raise "decode: object is nil" unless object
  object.is_a?(Array) ? object.map {|e| _decode(e)} : _decode(object)
end

#destroy(model) ⇒ Object



23
24
25
# File 'lib/mystro/cloud/connect.rb', line 23

def destroy(model)
  raise "not implemented"
end

#encode(model) ⇒ Object



27
28
29
30
# File 'lib/mystro/cloud/connect.rb', line 27

def encode(model)
  raise "encode: model is nil" unless model
  model.is_a?(Array) ? model.map {|e| _encode(e)} : _encode(model)
end

#find(id) ⇒ Object



15
16
17
# File 'lib/mystro/cloud/connect.rb', line 15

def find(id)
  raise "not implemented"
end