Class: CycloneLariat::Repo::InboxMessages

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Includes:
LunaPark::Extensions::Injector
Defined in:
lib/cyclone_lariat/repo/inbox_messages.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(**options)
  @config = CycloneLariat::Options.wrap(options).merge!(CycloneLariat.config)
end

Instance Attribute Details

#configObject (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

#driverObject



28
29
30
# File 'lib/cyclone_lariat/repo/inbox_messages.rb', line 28

def driver
  @driver ||= select(driver: config.driver)
end