Class: Mashery::Member
- Inherits:
-
ApiObjectBase
- Object
- ApiObjectBase
- Mashery::Member
- Defined in:
- lib/mashery/member.rb
Instance Attribute Summary collapse
-
#address1 ⇒ Object
Returns the value of attribute address1.
-
#address2 ⇒ Object
Returns the value of attribute address2.
-
#area_status ⇒ Object
Returns the value of attribute area_status.
-
#blog ⇒ Object
Returns the value of attribute blog.
-
#company ⇒ Object
Returns the value of attribute company.
-
#country_code ⇒ Object
Returns the value of attribute country_code.
-
#created ⇒ Object
readonly
Returns the value of attribute created.
-
#display_name ⇒ Object
Returns the value of attribute display_name.
-
#email ⇒ Object
Returns the value of attribute email.
-
#external_id ⇒ Object
Returns the value of attribute external_id.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#im ⇒ Object
Returns the value of attribute im.
-
#imsvc ⇒ Object
Returns the value of attribute imsvc.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
-
#locality ⇒ Object
Returns the value of attribute locality.
-
#passwd_new ⇒ Object
Returns the value of attribute passwd_new.
-
#phone ⇒ Object
Returns the value of attribute phone.
-
#postal_code ⇒ Object
Returns the value of attribute postal_code.
-
#region ⇒ Object
Returns the value of attribute region.
-
#registration_ipaddr ⇒ Object
Returns the value of attribute registration_ipaddr.
-
#updated ⇒ Object
readonly
Returns the value of attribute updated.
-
#uri ⇒ Object
Returns the value of attribute uri.
-
#username ⇒ Object
Returns the value of attribute username.
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from ApiObjectBase
delete, fetch, #initialize, method
Constructor Details
This class inherits a constructor from Mashery::ApiObjectBase
Instance Attribute Details
#address1 ⇒ Object
Returns the value of attribute address1.
4 5 6 |
# File 'lib/mashery/member.rb', line 4 def address1 @address1 end |
#address2 ⇒ Object
Returns the value of attribute address2.
4 5 6 |
# File 'lib/mashery/member.rb', line 4 def address2 @address2 end |
#area_status ⇒ Object
Returns the value of attribute area_status.
4 5 6 |
# File 'lib/mashery/member.rb', line 4 def area_status @area_status end |
#blog ⇒ Object
Returns the value of attribute blog.
4 5 6 |
# File 'lib/mashery/member.rb', line 4 def blog @blog end |
#company ⇒ Object
Returns the value of attribute company.
4 5 6 |
# File 'lib/mashery/member.rb', line 4 def company @company end |
#country_code ⇒ Object
Returns the value of attribute country_code.
4 5 6 |
# File 'lib/mashery/member.rb', line 4 def country_code @country_code end |
#created ⇒ Object (readonly)
Returns the value of attribute created.
3 4 5 |
# File 'lib/mashery/member.rb', line 3 def created @created end |
#display_name ⇒ Object
Returns the value of attribute display_name.
4 5 6 |
# File 'lib/mashery/member.rb', line 4 def display_name @display_name end |
#email ⇒ Object
Returns the value of attribute email.
4 5 6 |
# File 'lib/mashery/member.rb', line 4 def email @email end |
#external_id ⇒ Object
Returns the value of attribute external_id.
4 5 6 |
# File 'lib/mashery/member.rb', line 4 def external_id @external_id end |
#first_name ⇒ Object
Returns the value of attribute first_name.
4 5 6 |
# File 'lib/mashery/member.rb', line 4 def first_name @first_name end |
#im ⇒ Object
Returns the value of attribute im.
4 5 6 |
# File 'lib/mashery/member.rb', line 4 def im @im end |
#imsvc ⇒ Object
Returns the value of attribute imsvc.
4 5 6 |
# File 'lib/mashery/member.rb', line 4 def imsvc @imsvc end |
#last_name ⇒ Object
Returns the value of attribute last_name.
4 5 6 |
# File 'lib/mashery/member.rb', line 4 def last_name @last_name end |
#locality ⇒ Object
Returns the value of attribute locality.
4 5 6 |
# File 'lib/mashery/member.rb', line 4 def locality @locality end |
#passwd_new ⇒ Object
Returns the value of attribute passwd_new.
4 5 6 |
# File 'lib/mashery/member.rb', line 4 def passwd_new @passwd_new end |
#phone ⇒ Object
Returns the value of attribute phone.
4 5 6 |
# File 'lib/mashery/member.rb', line 4 def phone @phone end |
#postal_code ⇒ Object
Returns the value of attribute postal_code.
4 5 6 |
# File 'lib/mashery/member.rb', line 4 def postal_code @postal_code end |
#region ⇒ Object
Returns the value of attribute region.
4 5 6 |
# File 'lib/mashery/member.rb', line 4 def region @region end |
#registration_ipaddr ⇒ Object
Returns the value of attribute registration_ipaddr.
4 5 6 |
# File 'lib/mashery/member.rb', line 4 def registration_ipaddr @registration_ipaddr end |
#updated ⇒ Object (readonly)
Returns the value of attribute updated.
3 4 5 |
# File 'lib/mashery/member.rb', line 3 def updated @updated end |
#uri ⇒ Object
Returns the value of attribute uri.
4 5 6 |
# File 'lib/mashery/member.rb', line 4 def uri @uri end |
#username ⇒ Object
Returns the value of attribute username.
4 5 6 |
# File 'lib/mashery/member.rb', line 4 def username @username end |
Class Method Details
.create(username, display_name, email, fields = {}) ⇒ Object
8 9 10 11 12 |
# File 'lib/mashery/member.rb', line 8 def self.create(username, display_name, email, fields = {}) fields ||= {} our_fields = fields.merge('username' => username, 'display_name' => display_name, 'email' => email) super(our_fields) end |