Class: Mosaic::Lyris::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/mosaic/lyris/message.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Object

callback_url, configuration, configuration=, default_list_id, default_trigger_id, get_array_data, get_boolean_data, get_data, get_date_data, get_demographic_data, get_element, get_integer_data, get_integer_element, get_time_data, get_time_element, get_time_offset_data, get_xml_time_data, #initialize, load_configuration, logger, logger=, password, post, put_array_data, put_data, put_demographic_data, put_extra_data, server, site_id, #to_param, triggers

Constructor Details

This class inherits a constructor from Mosaic::Lyris::Object

Instance Attribute Details

#aolObject (readonly)

Returns the value of attribute aol.



4
5
6
# File 'lib/mosaic/lyris/message.rb', line 4

def aol
  @aol
end

#categoryObject (readonly)

Returns the value of attribute category.



4
5
6
# File 'lib/mosaic/lyris/message.rb', line 4

def category
  @category
end

#charsetObject (readonly)

Returns the value of attribute charset.



4
5
6
# File 'lib/mosaic/lyris/message.rb', line 4

def charset
  @charset
end

#clickthruObject (readonly)

Returns the value of attribute clickthru.



4
5
6
# File 'lib/mosaic/lyris/message.rb', line 4

def clickthru
  @clickthru
end

#clickthru_textObject (readonly)

Returns the value of attribute clickthru_text.



4
5
6
# File 'lib/mosaic/lyris/message.rb', line 4

def clickthru_text
  @clickthru_text
end

#edited_atObject (readonly)

Returns the value of attribute edited_at.



4
5
6
# File 'lib/mosaic/lyris/message.rb', line 4

def edited_at
  @edited_at
end

#formatObject (readonly)

Returns the value of attribute format.



4
5
6
# File 'lib/mosaic/lyris/message.rb', line 4

def format
  @format
end

#from_emailObject (readonly)

Returns the value of attribute from_email.



4
5
6
# File 'lib/mosaic/lyris/message.rb', line 4

def from_email
  @from_email
end

#from_nameObject (readonly)

Returns the value of attribute from_name.



4
5
6
# File 'lib/mosaic/lyris/message.rb', line 4

def from_name
  @from_name
end

#htmlObject (readonly)

Returns the value of attribute html.



4
5
6
# File 'lib/mosaic/lyris/message.rb', line 4

def html
  @html
end

#htmlencodingObject (readonly)

Returns the value of attribute htmlencoding.



4
5
6
# File 'lib/mosaic/lyris/message.rb', line 4

def htmlencoding
  @htmlencoding
end

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/mosaic/lyris/message.rb', line 4

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/mosaic/lyris/message.rb', line 4

def name
  @name
end

#ruleObject (readonly)

Returns the value of attribute rule.



4
5
6
# File 'lib/mosaic/lyris/message.rb', line 4

def rule
  @rule
end

#segmentObject (readonly)

Returns the value of attribute segment.



4
5
6
# File 'lib/mosaic/lyris/message.rb', line 4

def segment
  @segment
end

#segment_idObject (readonly)

Returns the value of attribute segment_id.



4
5
6
# File 'lib/mosaic/lyris/message.rb', line 4

def segment_id
  @segment_id
end

#sentObject (readonly)

Returns the value of attribute sent.



4
5
6
# File 'lib/mosaic/lyris/message.rb', line 4

def sent
  @sent
end

#sent_atObject (readonly)

Returns the value of attribute sent_at.



4
5
6
# File 'lib/mosaic/lyris/message.rb', line 4

def sent_at
  @sent_at
end

#stats_sentObject (readonly)

Returns the value of attribute stats_sent.



4
5
6
# File 'lib/mosaic/lyris/message.rb', line 4

def stats_sent
  @stats_sent
end

#subjectObject (readonly)

Returns the value of attribute subject.



4
5
6
# File 'lib/mosaic/lyris/message.rb', line 4

def subject
  @subject
end

#textObject (readonly)

Returns the value of attribute text.



4
5
6
# File 'lib/mosaic/lyris/message.rb', line 4

def text
  @text
end

#typeObject (readonly)

Returns the value of attribute type.



4
5
6
# File 'lib/mosaic/lyris/message.rb', line 4

def type
  @type
end

Class Method Details

.query(what, options = {}) ⇒ Object



28
29
30
31
32
33
34
# File 'lib/mosaic/lyris/message.rb', line 28

def query(what, options = {})
  if what == :all
    query_all(options)
  else
    query_one(what, options)
  end
end

Instance Method Details

#sent?Boolean

Returns:

  • (Boolean)


90
91
92
# File 'lib/mosaic/lyris/message.rb', line 90

def sent?
  sent == 'yes'
end