Sha256: 46f28ee61e9e5bc50f85c0c79aa2d6afc4f970ce91e080975daa05bec44eca08
Contents?: true
Size: 357 Bytes
Versions: 3
Compression:
Stored size: 357 Bytes
Contents
module Ratis class Point2Point::RoutesOnlyResponse VALID_ATTRS = [:route, :direction, :service_type, :signage, :route_type] VALID_ATTRS.each { |attr| attr_accessor attr } def initialize(attrs = {}) VALID_ATTRS.each do |attr| instance_variable_set "@#{attr.to_s}", attrs[attr] || attrs[attr.to_s] end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ratis-2.5.2.7 | lib/ratis/point_2_point/routes_only_response.rb |
ratis-2.5.2.6 | lib/ratis/point_2_point/routes_only_response.rb |
ratis-2.5.2.5 | lib/ratis/point_2_point/routes_only_response.rb |