Class: SendToKindle::Notifications::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/send_to_kindle/notifications/base.rb

Direct Known Subclasses

Creation, Modification

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file_path, message, options = {}) ⇒ Base

Returns a new instance of Base.



11
12
13
14
15
16
17
# File 'lib/send_to_kindle/notifications/base.rb', line 11

def initialize(file_path, message, options={})
  self.message   = message
  self.file_path = file_path
  self.options   = options

  add_mediums
end

Instance Attribute Details

#file_pathObject

Returns the value of attribute file_path.



9
10
11
# File 'lib/send_to_kindle/notifications/base.rb', line 9

def file_path
  @file_path
end

#messageObject

Returns the value of attribute message.



9
10
11
# File 'lib/send_to_kindle/notifications/base.rb', line 9

def message
  @message
end

#optionsObject

Returns the value of attribute options.



9
10
11
# File 'lib/send_to_kindle/notifications/base.rb', line 9

def options
  @options
end

Instance Method Details

#sendObject



19
20
# File 'lib/send_to_kindle/notifications/base.rb', line 19

def send
end