Class: Zuno::ModelDescriptor
- Inherits:
-
Struct
- Object
- Struct
- Zuno::ModelDescriptor
- Defined in:
- lib/zuno.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#provider ⇒ Object
Returns the value of attribute provider.
-
#provider_options ⇒ Object
Returns the value of attribute provider_options.
Instance Method Summary collapse
-
#initialize(id:, provider:, provider_options: {}) ⇒ ModelDescriptor
constructor
A new instance of ModelDescriptor.
Constructor Details
#initialize(id:, provider:, provider_options: {}) ⇒ ModelDescriptor
Returns a new instance of ModelDescriptor.
117 118 119 120 121 122 123 |
# File 'lib/zuno.rb', line 117 def initialize(id:, provider:, provider_options: {}) super( id: id.to_s, provider: provider.to_sym, provider_options: .is_a?(Hash) ? : {} ) end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id
116 117 118 |
# File 'lib/zuno.rb', line 116 def id @id end |
#provider ⇒ Object
Returns the value of attribute provider
116 117 118 |
# File 'lib/zuno.rb', line 116 def provider @provider end |
#provider_options ⇒ Object
Returns the value of attribute provider_options
116 117 118 |
# File 'lib/zuno.rb', line 116 def @provider_options end |