Sha256: 331fa88180c16ae63fe2ace8dcea704f069592179d88266a7a5a6b5c84a8d84c

Contents?: true

Size: 391 Bytes

Versions: 2

Compression:

Stored size: 391 Bytes

Contents

module LayMeOut
  class UserDetails
    def initialize(attr)
      @name = attr.fetch(:name)
      @position = attr[:position]
      @links = attr[:links]
      @profile_picture = attr[:profile_picture]
    end

    attr_reader :name, :position

    def profile_picture
      @profile_picture ||= 'lay_me_out/missing_profile.png'
    end

    def links
      @links ||= {}
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
lay_me_out-1.2.9 app/models/lay_me_out/user_details.rb
lay_me_out-1.2.8 app/models/lay_me_out/user_details.rb