Class: RailFeeds::NationalRail::KnowledgeBase::NationalServiceIndicator::ServiceGroup

Inherits:
Struct
  • Object
show all
Defined in:
lib/rail_feeds/national_rail/knowledge_base/national_service_indicator.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#detailObject

Returns the value of attribute detail

Returns:

  • (Object)

    the current value of detail



25
26
27
# File 'lib/rail_feeds/national_rail/knowledge_base/national_service_indicator.rb', line 25

def detail
  @detail
end

#disruption_idObject

Returns the value of attribute disruption_id

Returns:

  • (Object)

    the current value of disruption_id



25
26
27
# File 'lib/rail_feeds/national_rail/knowledge_base/national_service_indicator.rb', line 25

def disruption_id
  @disruption_id
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



25
26
27
# File 'lib/rail_feeds/national_rail/knowledge_base/national_service_indicator.rb', line 25

def name
  @name
end

#urlObject

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



25
26
27
# File 'lib/rail_feeds/national_rail/knowledge_base/national_service_indicator.rb', line 25

def url
  @url
end

Instance Method Details

#to_sObject



26
27
28
# File 'lib/rail_feeds/national_rail/knowledge_base/national_service_indicator.rb', line 26

def to_s
  "#{name} - #{detail}\n#{disruption_id} #{url}"
end