Project

virtus-uri

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Add a URI attribute type to Virtus.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 0

Runtime

~> 1.0.0
 Project Readme

Virtus URI

Provides a URI attribute for Virtus.

Getting Started

  1. Add to your Gemfile
gem 'virtus-uri', require: false
  1. Require it when you'd like to work with URIs:
  require 'virtus'
  require 'virtus/uri'

  class Request
    include Virtus

    attribute :url, URI
  end
  1. Work with URIs:
Request.new(url: 'http://example.com').url == URI('http://example.com')

License

MIT