Class: Flickr::Contacts::Contact
Overview
wrapping class to hold a flickr contact
Instance Attribute Summary collapse
-
#family ⇒ Object
Returns the value of attribute family.
-
#friend ⇒ Object
Returns the value of attribute friend.
-
#iconfarm ⇒ Object
Returns the value of attribute iconfarm.
-
#iconserver ⇒ Object
Returns the value of attribute iconserver.
-
#ignored ⇒ Object
Returns the value of attribute ignored.
-
#location ⇒ Object
Returns the value of attribute location.
-
#nsid ⇒ Object
Returns the value of attribute nsid.
-
#path_alias ⇒ Object
Returns the value of attribute path_alias.
-
#realname ⇒ Object
Returns the value of attribute realname.
-
#username ⇒ Object
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(attributes) ⇒ Contact
constructor
create a new instance of a flickr note.
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
#family ⇒ Object
Returns the value of attribute family.
4 5 6 |
# File 'lib/flickr/contact.rb', line 4 def family @family end |
#friend ⇒ Object
Returns the value of attribute friend.
4 5 6 |
# File 'lib/flickr/contact.rb', line 4 def friend @friend end |
#iconfarm ⇒ Object
Returns the value of attribute iconfarm.
4 5 6 |
# File 'lib/flickr/contact.rb', line 4 def iconfarm @iconfarm end |
#iconserver ⇒ Object
Returns the value of attribute iconserver.
4 5 6 |
# File 'lib/flickr/contact.rb', line 4 def iconserver @iconserver end |
#ignored ⇒ Object
Returns the value of attribute ignored.
4 5 6 |
# File 'lib/flickr/contact.rb', line 4 def ignored @ignored end |
#location ⇒ Object
Returns the value of attribute location.
4 5 6 |
# File 'lib/flickr/contact.rb', line 4 def location @location end |
#nsid ⇒ Object
Returns the value of attribute nsid.
4 5 6 |
# File 'lib/flickr/contact.rb', line 4 def nsid @nsid end |
#path_alias ⇒ Object
Returns the value of attribute path_alias.
4 5 6 |
# File 'lib/flickr/contact.rb', line 4 def path_alias @path_alias end |
#realname ⇒ Object
Returns the value of attribute realname.
4 5 6 |
# File 'lib/flickr/contact.rb', line 4 def realname @realname end |
#username ⇒ Object
Returns the value of attribute username.
4 5 6 |
# File 'lib/flickr/contact.rb', line 4 def username @username end |