Class: ApiMapper::Relationship

Inherits:
Object
  • Object
show all
Defined in:
lib/api_mapper/mapper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, mapper) ⇒ Relationship

Returns a new instance of Relationship.



72
73
74
75
# File 'lib/api_mapper/mapper.rb', line 72

def initialize(name, mapper)
  @name = name
  @mapper = mapper
end

Instance Attribute Details

#mapperObject (readonly)

Returns the value of attribute mapper.



70
71
72
# File 'lib/api_mapper/mapper.rb', line 70

def mapper
  @mapper
end

#nameObject (readonly)

Returns the value of attribute name.



70
71
72
# File 'lib/api_mapper/mapper.rb', line 70

def name
  @name
end