Sha256: 07b02589386801f35070bc8b74dff76b012f1bdc6ed9e5d50eb3e8ab263f4364
Contents?: true
Size: 383 Bytes
Versions: 5
Compression:
Stored size: 383 Bytes
Contents
# frozen_string_literal: true module FaceGroups # Attached URL to Posting class Attachment attr_reader :title, :description, :url def initialize(data) return unless data attachment_data = data['data'].first @title = attachment_data['title'] @description = attachment_data['description'] @url = attachment_data['url'] end end end
Version data entries
5 entries across 5 versions & 1 rubygems