Class: Ivy::Serializers::Relationships::Relationship
- Inherits:
-
Object
- Object
- Ivy::Serializers::Relationships::Relationship
- Defined in:
- lib/ivy/serializers/relationships/relationship.rb
Instance Method Summary collapse
-
#initialize(name, options = {}, &getter) ⇒ Relationship
constructor
A new instance of Relationship.
Constructor Details
#initialize(name, options = {}, &getter) ⇒ Relationship
Returns a new instance of Relationship.
5 6 7 8 9 |
# File 'lib/ivy/serializers/relationships/relationship.rb', line 5 def initialize(name, ={}, &getter) @name = name @options = @getter = getter || method(:default_getter) end |