Class: Flickr::Contacts::Contact

Inherits:
Object
  • Object
show all
Defined in:
lib/flickr/contact.rb

Overview

wrapping class to hold a flickr contact

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ Contact

create a new instance of a flickr note.

Params

  • attributes (Required)

    a hash of attributes used to set the initial values of the contact object
    


11
12
13
14
15
# File 'lib/flickr/contact.rb', line 11

def initialize(attributes)
  attributes.each do |k,v|
    send("#{k}=", v)
  end
end

Instance Attribute Details

#familyObject

Returns the value of attribute family.



4
5
6
# File 'lib/flickr/contact.rb', line 4

def family
  @family
end

#friendObject

Returns the value of attribute friend.



4
5
6
# File 'lib/flickr/contact.rb', line 4

def friend
  @friend
end

#iconfarmObject

Returns the value of attribute iconfarm.



4
5
6
# File 'lib/flickr/contact.rb', line 4

def iconfarm
  @iconfarm
end

#iconserverObject

Returns the value of attribute iconserver.



4
5
6
# File 'lib/flickr/contact.rb', line 4

def iconserver
  @iconserver
end

#ignoredObject

Returns the value of attribute ignored.



4
5
6
# File 'lib/flickr/contact.rb', line 4

def ignored
  @ignored
end

#locationObject

Returns the value of attribute location.



4
5
6
# File 'lib/flickr/contact.rb', line 4

def location
  @location
end

#nsidObject

Returns the value of attribute nsid.



4
5
6
# File 'lib/flickr/contact.rb', line 4

def nsid
  @nsid
end

#path_aliasObject

Returns the value of attribute path_alias.



4
5
6
# File 'lib/flickr/contact.rb', line 4

def path_alias
  @path_alias
end

#realnameObject

Returns the value of attribute realname.



4
5
6
# File 'lib/flickr/contact.rb', line 4

def realname
  @realname
end

#usernameObject

Returns the value of attribute username.



4
5
6
# File 'lib/flickr/contact.rb', line 4

def username
  @username
end