Class: RailFeeds::NationalRail::KnowledgeBase::NationalServiceIndicator::ServiceGroup
- Inherits:
-
Struct
- Object
- Struct
- RailFeeds::NationalRail::KnowledgeBase::NationalServiceIndicator::ServiceGroup
- Defined in:
- lib/rail_feeds/national_rail/knowledge_base/national_service_indicator.rb
Instance Attribute Summary collapse
-
#detail ⇒ Object
Returns the value of attribute detail.
-
#disruption_id ⇒ Object
Returns the value of attribute disruption_id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
Instance Attribute Details
#detail ⇒ Object
Returns the value of attribute detail
25 26 27 |
# File 'lib/rail_feeds/national_rail/knowledge_base/national_service_indicator.rb', line 25 def detail @detail end |
#disruption_id ⇒ Object
Returns the value of attribute 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 |
#name ⇒ Object
Returns the value of attribute name
25 26 27 |
# File 'lib/rail_feeds/national_rail/knowledge_base/national_service_indicator.rb', line 25 def name @name end |
#url ⇒ Object
Returns the value of attribute 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_s ⇒ Object
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 |