Module: Transcriber::Resource::Embeddable::Builder
- Included in:
- Builder
- Defined in:
- lib/transcriber/resource/key/embeddable/builder.rb
Instance Method Summary collapse
- #embeds(name, options = {}) ⇒ Object
- #embeds_many(name, options = {}) ⇒ Object
- #embeds_one(name, options = {}) ⇒ Object
Instance Method Details
#embeds(name, options = {}) ⇒ Object
5 6 7 |
# File 'lib/transcriber/resource/key/embeddable/builder.rb', line 5 def (name, = {}) key Embeddable.new(name, ) end |
#embeds_many(name, options = {}) ⇒ Object
14 15 16 17 |
# File 'lib/transcriber/resource/key/embeddable/builder.rb', line 14 def (name, = {}) .merge!(many: true) (name, ) end |
#embeds_one(name, options = {}) ⇒ Object
9 10 11 12 |
# File 'lib/transcriber/resource/key/embeddable/builder.rb', line 9 def (name, = {}) .merge!(many: false) (name, ) end |