class PecCalcClient::Place

Constants

PLACE_PARAMS

Public Class Methods

new(params) click to toggle source
# File lib/pec_calc_client/place.rb, line 7
def initialize(params)
  params.each { |k, v| instance_variable_set("@#{k}", v) if PLACE_PARAMS.include? k.to_s }
end

Public Instance Methods

to_a() click to toggle source
# File lib/pec_calc_client/place.rb, line 11
def to_a
  PLACE_PARAMS.map { |k| instance_variable_get("@#{k}") }
end