Class: Connectwise::Member

Inherits:
Object
  • Object
show all
Includes:
Model
Defined in:
lib/connectwise/member.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Model

#defined_attributes, #destroy, included, #initialize, #persisted?, #save, #to_cw_h, #to_h

Instance Attribute Details

#email_addressObject

Returns the value of attribute email_address.



4
5
6
# File 'lib/connectwise/member.rb', line 4

def email_address
  @email_address
end

#first_nameObject

Returns the value of attribute first_name.



4
5
6
# File 'lib/connectwise/member.rb', line 4

def first_name
  @first_name
end

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/connectwise/member.rb', line 4

def id
  @id
end

#last_nameObject

Returns the value of attribute last_name.



4
5
6
# File 'lib/connectwise/member.rb', line 4

def last_name
  @last_name
end

Class Method Details

.find_transform(attrs) ⇒ Object



6
7
8
9
# File 'lib/connectwise/member.rb', line 6

def self.find_transform(attrs)
  attrs[:id] = attrs.delete(:member_id)
  attrs
end