Sha256: 23c601924ec1caa43a8a10f50c9cce207f52155dd0222e84ff59ea87af873a29

Contents?: true

Size: 863 Bytes

Versions: 3

Compression:

Stored size: 863 Bytes

Contents

module DwollaSwagger
  # 
  class HalLink < BaseObject
    attr_accessor :href, :type
    # attribute mapping from ruby-style variable name to JSON key
    def self.attribute_map
      {
        
        # 
        :'href' => :'href',
        
        # 
        :'type' => :'type'
        
      }
    end

    # attribute type
    def self.swagger_types
      {
        :'href' => :'string',
        :'type' => :'string'
        
      }
    end

    def initialize(attributes = {})
      return if !attributes.is_a?(Hash) || attributes.empty?

      # convert string to symbol for hash key
      attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}

      
      if attributes[:'href']
        @href = attributes[:'href']
      end
      
      if attributes[:'type']
        @type = attributes[:'type']
      end
      
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
dwolla_swagger-1.0.12 lib/dwolla_swagger/models/hal_link.rb
dwolla_swagger-1.0.11 lib/dwolla_swagger/models/hal_link.rb
dwolla_swagger-1.0.10 lib/dwolla_swagger/models/hal_link.rb