Sha256: 13d3dbb2fbc89b36cde4ae415ff7164c112804b5ab696e6a959a175bed77f333
Contents?: true
Size: 359 Bytes
Versions: 34
Compression:
Stored size: 359 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
34 entries across 34 versions & 1 rubygems