Class: Mystro::Cloud::Connect
- Inherits:
-
Object
- Object
- Mystro::Cloud::Connect
- Defined in:
- lib/mystro/cloud/connect.rb
Direct Known Subclasses
Class Attribute Summary collapse
-
.collection ⇒ Object
readonly
Returns the value of attribute collection.
-
.decoders ⇒ Object
readonly
Returns the value of attribute decoders.
-
.klass ⇒ Object
readonly
Returns the value of attribute klass.
-
.model ⇒ Object
readonly
Returns the value of attribute model.
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #all ⇒ Object
- #create(model) ⇒ Object
- #decode(object) ⇒ Object
- #destroy(model) ⇒ Object
- #encode(model) ⇒ Object
- #find(id) ⇒ Object
-
#initialize(options, config) ⇒ Connect
constructor
A new instance of Connect.
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(, config) @options = @config = config end |
Class Attribute Details
.collection ⇒ Object (readonly)
Returns the value of attribute collection.
48 49 50 |
# File 'lib/mystro/cloud/connect.rb', line 48 def collection @collection end |
.decoders ⇒ Object (readonly)
Returns the value of attribute decoders.
48 49 50 |
# File 'lib/mystro/cloud/connect.rb', line 48 def decoders @decoders end |
.klass ⇒ Object (readonly)
Returns the value of attribute klass.
48 49 50 |
# File 'lib/mystro/cloud/connect.rb', line 48 def klass @klass end |
.model ⇒ Object (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
#config ⇒ Object (readonly)
Returns the value of attribute config.
4 5 6 |
# File 'lib/mystro/cloud/connect.rb', line 4 def config @config end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
4 5 6 |
# File 'lib/mystro/cloud/connect.rb', line 4 def @options end |
Instance Method Details
#all ⇒ Object
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 |