Sha256: c15ec38de75ca2644f1444a1d9f2a2e9e239440293e9dafb6f33f14bc044885c

Contents?: true

Size: 633 Bytes

Versions: 1

Compression:

Stored size: 633 Bytes

Contents

# frozen_string_literal: true

module ExtraSpace
  # e.g. https://www.extraspace.com/storage/facilities/us/alabama/auburn/3264/
  class Availability
    # @attribute [rw] available
    #   @return [String]
    attr_accessor :available

    # @param uid [String]
    def initialize(available:)
      @available = available
    end

    # @return [String]
    def inspect
      props = [
        "available=#{@available.inspect}"
      ]
      "#<#{self.class.name} #{props.join(' ')}>"
    end

    # @param data [Hash]
    #
    # @return [Address]
    def self.parse(data:)
      new(available: data['available'])
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
extraspace-0.1.0 lib/extraspace/availability.rb