Class: ApiMapper::Relationship
- Inherits:
-
Object
- Object
- ApiMapper::Relationship
- Defined in:
- lib/api_mapper/mapper.rb
Instance Attribute Summary collapse
-
#mapper ⇒ Object
readonly
Returns the value of attribute mapper.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name, mapper) ⇒ Relationship
constructor
A new instance of Relationship.
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
#mapper ⇒ Object (readonly)
Returns the value of attribute mapper.
70 71 72 |
# File 'lib/api_mapper/mapper.rb', line 70 def mapper @mapper end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
70 71 72 |
# File 'lib/api_mapper/mapper.rb', line 70 def name @name end |