Class: RailFeeds::NationalRail::KnowledgeBase::NationalServiceIndicator::Status

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

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



19
20
21
# File 'lib/rail_feeds/national_rail/knowledge_base/national_service_indicator.rb', line 19

def description
  @description
end

#imageObject

Returns the value of attribute image

Returns:

  • (Object)

    the current value of image



19
20
21
# File 'lib/rail_feeds/national_rail/knowledge_base/national_service_indicator.rb', line 19

def image
  @image
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of title



19
20
21
# File 'lib/rail_feeds/national_rail/knowledge_base/national_service_indicator.rb', line 19

def title
  @title
end

Instance Method Details

#to_sObject



20
21
22
# File 'lib/rail_feeds/national_rail/knowledge_base/national_service_indicator.rb', line 20

def to_s
  "#{title} - #{description} - #{image}"
end