Class: Snov::GetUserLists::UserList

Inherits:
Object
  • Object
show all
Includes:
ActiveModel::Model
Defined in:
lib/snov/get_user_lists.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contactsObject

Returns the value of attribute contacts.



30
31
32
# File 'lib/snov/get_user_lists.rb', line 30

def contacts
  @contacts
end

#creation_dateObject

Returns the value of attribute creation_date.



31
32
33
# File 'lib/snov/get_user_lists.rb', line 31

def creation_date
  @creation_date
end

#deletion_dateObject

Returns the value of attribute deletion_date.



31
32
33
# File 'lib/snov/get_user_lists.rb', line 31

def deletion_date
  @deletion_date
end

#idObject

Returns the value of attribute id.



30
31
32
# File 'lib/snov/get_user_lists.rb', line 30

def id
  @id
end

#is_deletedObject

Returns the value of attribute is_deleted.



30
31
32
# File 'lib/snov/get_user_lists.rb', line 30

def is_deleted
  @is_deleted
end

#nameObject

Returns the value of attribute name.



30
31
32
# File 'lib/snov/get_user_lists.rb', line 30

def name
  @name
end

Instance Method Details

#to_hObject



42
43
44
# File 'lib/snov/get_user_lists.rb', line 42

def to_h
  { id: id, is_deleted: is_deleted, name: name, contacts: contacts }
end