Sha256: 2ae13c24bb495c0c5989b7c44052a0b8212fbbd2909c22163b3234fb64122fba

Contents?: true

Size: 263 Bytes

Versions: 3

Compression:

Stored size: 263 Bytes

Contents

# frozen_string_literal: true

class StarGazer
  include Arstotzka

  expose :favorite_star, full_path: 'universe.star',
                         default: { name: 'Sun' }, class: ::Star

  attr_reader :json

  def initialize(json = {})
    @json = json
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
arstotzka-1.0.4 spec/support/models/star_gazer.rb
arstotzka-1.0.3 spec/support/models/star_gazer.rb
arstotzka-1.0.2 spec/support/models/star_gazer.rb