Class: GoTransit::ServiceUpdate::Message

Inherits:
ApiResource show all
Defined in:
lib/go_transit/resources/service_update/message.rb

Defined Under Namespace

Classes: Line, Stop, Trip

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from ApiResource

#initialize

Constructor Details

This class inherits a constructor from GoTransit::ApiResource

Instance Attribute Details

#body_englishObject

Returns the value of attribute body_english.



3
4
5
# File 'lib/go_transit/resources/service_update/message.rb', line 3

def body_english
  @body_english
end

#body_frenchObject

Returns the value of attribute body_french.



3
4
5
# File 'lib/go_transit/resources/service_update/message.rb', line 3

def body_french
  @body_french
end

#categoryObject

Returns the value of attribute category.



3
4
5
# File 'lib/go_transit/resources/service_update/message.rb', line 3

def category
  @category
end

#codeObject

Returns the value of attribute code.



3
4
5
# File 'lib/go_transit/resources/service_update/message.rb', line 3

def code
  @code
end

#linesObject

Returns the value of attribute lines.



3
4
5
# File 'lib/go_transit/resources/service_update/message.rb', line 3

def lines
  @lines
end

#parent_codeObject

Returns the value of attribute parent_code.



3
4
5
# File 'lib/go_transit/resources/service_update/message.rb', line 3

def parent_code
  @parent_code
end

#posted_date_timeObject

Returns the value of attribute posted_date_time.



3
4
5
# File 'lib/go_transit/resources/service_update/message.rb', line 3

def posted_date_time
  @posted_date_time
end

#statusObject

Returns the value of attribute status.



3
4
5
# File 'lib/go_transit/resources/service_update/message.rb', line 3

def status
  @status
end

#stopsObject

Returns the value of attribute stops.



3
4
5
# File 'lib/go_transit/resources/service_update/message.rb', line 3

def stops
  @stops
end

#sub_categoryObject

Returns the value of attribute sub_category.



3
4
5
# File 'lib/go_transit/resources/service_update/message.rb', line 3

def sub_category
  @sub_category
end

#subject_englishObject

Returns the value of attribute subject_english.



3
4
5
# File 'lib/go_transit/resources/service_update/message.rb', line 3

def subject_english
  @subject_english
end

#subject_frenchObject

Returns the value of attribute subject_french.



3
4
5
# File 'lib/go_transit/resources/service_update/message.rb', line 3

def subject_french
  @subject_french
end

#tripsObject

Returns the value of attribute trips.



3
4
5
# File 'lib/go_transit/resources/service_update/message.rb', line 3

def trips
  @trips
end

Instance Method Details

#posted_date_time_utcObject



7
8
9
# File 'lib/go_transit/resources/service_update/message.rb', line 7

def posted_date_time_utc
  to_utc(posted_date_time)
end