Sha256: a722e402c5cab5b058aa0601af1cca5df66b97018f8639d76f6e14aff921bfd4

Contents?: true

Size: 334 Bytes

Versions: 17

Compression:

Stored size: 334 Bytes

Contents

# frozen_string_literal: true

class StarGazer
  include Arstotzka

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

  attr_reader :json

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

  private

  def only_yellow(stars)
    stars.select(&:yellow?)
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
arstotzka-1.6.2 spec/support/models/star_gazer.rb
arstotzka-1.6.1 spec/support/models/star_gazer.rb
arstotzka-1.6.0 spec/support/models/star_gazer.rb
arstotzka-1.5.0 spec/support/models/star_gazer.rb
arstotzka-1.4.4 spec/support/models/star_gazer.rb
arstotzka-1.4.3 spec/support/models/star_gazer.rb
arstotzka-1.4.2 spec/support/models/star_gazer.rb
arstotzka-1.4.1 spec/support/models/star_gazer.rb
arstotzka-1.4.0 spec/support/models/star_gazer.rb
arstotzka-1.3.2 spec/support/models/star_gazer.rb
arstotzka-1.3.1 spec/support/models/star_gazer.rb
arstotzka-1.3.0 spec/support/models/star_gazer.rb
arstotzka-1.2.4 spec/support/models/star_gazer.rb
arstotzka-1.2.3 spec/support/models/star_gazer.rb
arstotzka-1.2.2 spec/support/models/star_gazer.rb
arstotzka-1.2.1 spec/support/models/star_gazer.rb
arstotzka-1.2.0 spec/support/models/star_gazer.rb