Class: Replicate::Record::Model

Inherits:
Base
  • Object
show all
Defined in:
lib/replicate/record/model.rb

Instance Attribute Summary

Attributes inherited from Base

#client, #data

Instance Method Summary collapse

Methods inherited from Base

#inspect, #method_missing

Constructor Details

#initialize(client, params) ⇒ Model

Returns a new instance of Model.



6
7
8
9
# File 'lib/replicate/record/model.rb', line 6

def initialize(client, params)
  params["latest_version"] = Replicate::Record::ModelVersion.new(client, params["latest_version"])
  super
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Replicate::Record::Base