Sha256: b5b5ef5e73497039b64bcc135ec2424673a3f4dd0147c4385bc407014797e68f

Contents?: true

Size: 601 Bytes

Versions: 8

Compression:

Stored size: 601 Bytes

Contents

require 'station_master/station/find'

module StationMaster
  class Station
    extend Find

    attr_reader :station_code, :latitude, :longitude, :region_id, :location

    def initialize(station_code, latitude, longitude, region_id, location)
      @station_code = station_code
      @latitude = latitude
      @longitude = longitude
      @region_id = region_id
      @location = location
    end

    def to_hash
      {
        station_code: station_code,
        latitude: latitude,
        longitude: longitude,
        region_id: region_id,
        location: location
      }
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
station_master-0.1.3 lib/station_master/station.rb
station_master-0.1.2 lib/station_master/station.rb
station_master-0.1.1 lib/station_master/station.rb
station_master-0.1.0 lib/station_master/station.rb
station_master-0.0.12 lib/station_master/station.rb
station_master-0.0.11 lib/station_master/station.rb
station_master-0.0.10 lib/station_master/station.rb
station_master-0.0.9 lib/station_master/station.rb