Sha256: df5db3760e2668922ce3dc59bce64994b24454e58144dc3993b44114691fe942

Contents?: true

Size: 929 Bytes

Versions: 4

Compression:

Stored size: 929 Bytes

Contents

#!/usr/bin/env ruby

require "bundler/setup"
require "syobocalite"

# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.

# (If you use this, don't forget to add pry to your Gemfile!)
# require "pry"
# Pry.start

class Syobocalite::Program
  def to_fixture
    <<~RUBY
      Syobocalite::Program.new(
        pid:          #{pid},
        tid:          #{tid},
        st_time:      "#{st_time.strftime("%Y-%m-%d %H:%M:%S")}".in_time_zone,
        ed_time:      "#{ed_time.strftime("%Y-%m-%d %H:%M:%S")}".in_time_zone,
        ch_name:      "#{ch_name}",
        ch_id:        #{ch_id},
        count:        #{count},
        st_offset:    #{st_offset},
        sub_title:    "#{sub_title}",
        title:        "#{title}",
        prog_comment: "#{prog_comment}",
      )
    RUBY
  end
end

require "irb"
IRB.start(__FILE__)

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
syobocalite-1.1.1 bin/console
syobocalite-1.1.0 bin/console
syobocalite-1.0.1 bin/console
syobocalite-1.0.0 bin/console