Class: GoTransit::Schedule::Line::Trip::Stop

Inherits:
ApiResource
  • Object
show all
Defined in:
lib/go_transit/resources/schedule/line/trip/stop.rb

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

#codeObject

Returns the value of attribute code.



3
4
5
# File 'lib/go_transit/resources/schedule/line/trip/stop.rb', line 3

def code
  @code
end

#is_majorObject

Returns the value of attribute is_major.



3
4
5
# File 'lib/go_transit/resources/schedule/line/trip/stop.rb', line 3

def is_major
  @is_major
end

#orderObject

Returns the value of attribute order.



3
4
5
# File 'lib/go_transit/resources/schedule/line/trip/stop.rb', line 3

def order
  @order
end

#sorting_timeObject

Returns the value of attribute sorting_time.



3
4
5
# File 'lib/go_transit/resources/schedule/line/trip/stop.rb', line 3

def sorting_time
  @sorting_time
end

#timeObject

Returns the value of attribute time.



3
4
5
# File 'lib/go_transit/resources/schedule/line/trip/stop.rb', line 3

def time
  @time
end

Instance Method Details

#major?Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/go_transit/resources/schedule/line/trip/stop.rb', line 5

def major?
  is_major.to_i.positive?
end