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

Version Path
ratis-3.6.6 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.6.5 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.6.4 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.6.3 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.6.2 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.6.1 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.6.0 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.5.0 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.4.3 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.4.2 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.4.1 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.4.0 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.3.7 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.3.6 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.3.5 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.3.4 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.3.3 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.3.2 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.3.1 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.3.0 lib/ratis/point_2_point/routes_only_response.rb