Class: Omniship::Notification

Inherits:
Object
  • Object
show all
Defined in:
lib/omniship/notification.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Notification

Returns a new instance of Notification.



11
12
13
14
15
16
# File 'lib/omniship/notification.rb', line 11

def initialize(options = {})
  @email       = options[:email]
  @format      = options[:format]
  @language    = options[:language]
  @locale_code = options[:locale_code]
end

Instance Attribute Details

#emailObject (readonly) Also known as: email_address

Returns the value of attribute email.



4
5
6
# File 'lib/omniship/notification.rb', line 4

def email
  @email
end

#formatObject (readonly)

Returns the value of attribute format.



5
6
7
# File 'lib/omniship/notification.rb', line 5

def format
  @format
end

#languageObject (readonly)

Returns the value of attribute language.



6
7
8
# File 'lib/omniship/notification.rb', line 6

def language
  @language
end

#locale_codeObject (readonly)

Returns the value of attribute locale_code.



7
8
9
# File 'lib/omniship/notification.rb', line 7

def locale_code
  @locale_code
end

#optionsObject (readonly)

Returns the value of attribute options.



3
4
5
# File 'lib/omniship/notification.rb', line 3

def options
  @options
end