Sha256: c105ee0ec3fa739180416fefac2aa8cd4f9dfe299214e1d982468e8579fbdf82

Contents?: true

Size: 320 Bytes

Versions: 8

Compression:

Stored size: 320 Bytes

Contents

module A2z
  module Responses
    class ItemLink
      attr_accessor :description, :url
      
      def self.from_response(data)
        new.tap do |item_link|
          item_link.description = data['Description']
          item_link.url = data['URL']
          item_link.freeze
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
a2z-0.1.3 lib/a2z/responses/item_link.rb
a2z-0.1.2 lib/a2z/responses/item_link.rb
a2z-0.1.1 lib/a2z/responses/item_link.rb
a2z-0.1.0 lib/a2z/responses/item_link.rb
a2z-0.0.4 lib/a2z/responses/item_link.rb
a2z-0.0.3 lib/a2z/responses/item_link.rb
a2z-0.0.2 lib/a2z/responses/item_link.rb
a2z-0.0.1 lib/a2z/responses/item_link.rb