Class: Zuno::ModelDescriptor

Inherits:
Struct
  • Object
show all
Defined in:
lib/zuno.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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: provider_options.is_a?(Hash) ? provider_options : {}
  )
end

Instance Attribute Details

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



116
117
118
# File 'lib/zuno.rb', line 116

def id
  @id
end

#providerObject

Returns the value of attribute provider

Returns:

  • (Object)

    the current value of provider



116
117
118
# File 'lib/zuno.rb', line 116

def provider
  @provider
end

#provider_optionsObject

Returns the value of attribute provider_options

Returns:

  • (Object)

    the current value of provider_options



116
117
118
# File 'lib/zuno.rb', line 116

def provider_options
  @provider_options
end