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.2.1 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.2.0 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.1.8 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.1.7 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.1.6 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.1.5.1 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.1.5 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.1.4 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.1.3 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.1.2 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.1.1 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.1.0 lib/ratis/point_2_point/routes_only_response.rb
ratis-3.0.0 lib/ratis/point_2_point/routes_only_response.rb
ratis-2.5.2.8 lib/ratis/point_2_point/routes_only_response.rb