Sha256: 5ebdc69f9b098a1c5843077ad3c7f79aa64e5f43279046ea6158a5157f7d9489

Contents?: true

Size: 863 Bytes

Versions: 10

Compression:

Stored size: 863 Bytes

Contents

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

    # attribute type
    def self.swagger_types
      {
        :'href' => :'string',
        :'name' => :'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[:'name']
        @name = attributes[:'name']
      end
      
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dwolla_swagger-1.0.9 lib/dwolla_swagger/models/hal_link.rb
dwolla_swagger-1.0.8 lib/dwolla_swagger/models/hal_link.rb
dwolla_swagger-1.0.7 lib/dwolla_swagger/models/hal_link.rb
dwolla_swagger-1.0.6 lib/dwolla_swagger/models/hal_link.rb
dwolla_swagger-1.0.5 lib/dwolla_swagger/models/hal_link.rb
dwolla_swagger-1.0.4 lib/dwolla_swagger/models/hal_link.rb
dwolla_swagger-1.0.3 lib/dwolla_swagger/models/hal_link.rb
dwolla_swagger-1.0.2 lib/dwolla_swagger/models/hal_link.rb
dwolla_swagger-1.0.1 lib/dwolla_swagger/models/hal_link.rb
dwolla_swagger-1.0.0 lib/dwolla_swagger/models/hal_link.rb