Class: CycloneLariat::Repo::InboxMessages
- Inherits:
-
Object
- Object
- CycloneLariat::Repo::InboxMessages
- Extended by:
- Forwardable
- Includes:
- LunaPark::Extensions::Injector
- Defined in:
- lib/cyclone_lariat/repo/inbox_messages.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
Instance Method Summary collapse
- #driver ⇒ Object
-
#initialize(**options) ⇒ InboxMessages
constructor
A new instance of InboxMessages.
Constructor Details
#initialize(**options) ⇒ InboxMessages
Returns a new instance of InboxMessages.
24 25 26 |
# File 'lib/cyclone_lariat/repo/inbox_messages.rb', line 24 def initialize(**) @config = CycloneLariat::Options.wrap().merge!(CycloneLariat.config) end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
14 15 16 |
# File 'lib/cyclone_lariat/repo/inbox_messages.rb', line 14 def config @config end |
Instance Method Details
#driver ⇒ Object
28 29 30 |
# File 'lib/cyclone_lariat/repo/inbox_messages.rb', line 28 def driver @driver ||= select(driver: config.driver) end |