Class: Rasti::Types::Model
- Inherits:
-
Object
- Object
- Rasti::Types::Model
- Includes:
- Castable
- Defined in:
- lib/rasti/types/model.rb
Instance Attribute Summary collapse
-
#model ⇒ Object
readonly
Returns the value of attribute model.
Class Method Summary collapse
Instance Method Summary collapse
- #to_s ⇒ Object (also: #inspect)
Methods included from Castable
Instance Attribute Details
#model ⇒ Object (readonly)
Returns the value of attribute model.
7 8 9 |
# File 'lib/rasti/types/model.rb', line 7 def model @model end |
Class Method Details
.[](model) ⇒ Object
9 10 11 |
# File 'lib/rasti/types/model.rb', line 9 def self.[](model) new(model) end |
Instance Method Details
#to_s ⇒ Object Also known as: inspect
13 14 15 |
# File 'lib/rasti/types/model.rb', line 13 def to_s "#{self.class}[#{model}]" end |