Class: Flickr::License
- Inherits:
-
Object
- Object
- Flickr::License
- Defined in:
- lib/flickr/base.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id, name, url) ⇒ License
constructor
A new instance of License.
Constructor Details
#initialize(id, name, url) ⇒ License
Returns a new instance of License.
619 620 621 622 623 |
# File 'lib/flickr/base.rb', line 619 def initialize(id,name,url) @id = id @name = name @url = url end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
618 619 620 |
# File 'lib/flickr/base.rb', line 618 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
618 619 620 |
# File 'lib/flickr/base.rb', line 618 def name @name end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
618 619 620 |
# File 'lib/flickr/base.rb', line 618 def url @url end |
Class Method Details
.from_xml(xml) ⇒ Object
625 626 627 628 629 |
# File 'lib/flickr/base.rb', line 625 def self.from_xml(xml) att = xml.attributes return Flickr::License.new(att['id'],att['name'], att['url']) end |