Sha256: bc4cd5055b7a0732ce9920e2719bdbff6d5a7fbba0303dadf4d8668b04982bd8

Contents?: true

Size: 672 Bytes

Versions: 1

Compression:

Stored size: 672 Bytes

Contents

require 'active_resource'

DATAPANDA_SERVER = 'http://144.92.151.228'

class VisitRawDataDirectoryResource < ActiveResource::Base
  self.site = VisitRawDataDirectory::DATAPANDA_SERVER
  self.element_name = "visit"
  
  # Creates a Backwards Transfer to go from ActiveRecord to Metamri Classes
  # ActiveResource will provide :attr methods for column names from the database, 
  # so check the current schema.rb file for those.
  def to_metamri_visit_raw_data_directory    
    @visit = VisitRawDataDirectory.new(path)
    @visit.timestamp = date
    @visit.rmr_number = rmr
    @visit.scanner_source = scanner_source
    @visit.database_id = id
    return @visit
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
metamri-0.1.11 lib/metamri/visit_raw_data_directory_resource.rb