Class: DoverToCalais::ResponseData::Entity

Inherits:
Struct
  • Object
show all
Defined in:
lib/dover_to_calais.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



82
83
84
# File 'lib/dover_to_calais.rb', line 82

def name
  @name
end

#refObject

Returns the value of attribute ref

Returns:

  • (Object)

    the current value of ref



82
83
84
# File 'lib/dover_to_calais.rb', line 82

def ref
  @ref
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



82
83
84
# File 'lib/dover_to_calais.rb', line 82

def type
  @type
end

Instance Method Details

#to_hashObject



84
85
86
87
88
89
90
# File 'lib/dover_to_calais.rb', line 84

def to_hash
  a_hash = {}
  self.each_pair do |attr, value|
    a_hash[attr] =  value
  end
  a_hash
end