Class: Myflickr::MachineTag
- Inherits:
-
Struct
- Object
- Struct
- Myflickr::MachineTag
- Defined in:
- lib/myflickr/machine_tag.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#predicate ⇒ Object
Returns the value of attribute predicate.
-
#value ⇒ Object
Returns the value of attribute value.
Class Method Summary collapse
Instance Attribute Details
#namespace ⇒ Object
Returns the value of attribute namespace
2 3 4 |
# File 'lib/myflickr/machine_tag.rb', line 2 def namespace @namespace end |
#predicate ⇒ Object
Returns the value of attribute predicate
2 3 4 |
# File 'lib/myflickr/machine_tag.rb', line 2 def predicate @predicate end |
#value ⇒ Object
Returns the value of attribute value
2 3 4 |
# File 'lib/myflickr/machine_tag.rb', line 2 def value @value end |
Class Method Details
.from_s(string) ⇒ Object
3 4 5 |
# File 'lib/myflickr/machine_tag.rb', line 3 def self.from_s string new($1, $2, $3) if string =~ /(.*)\:(.*)\=(.*)/ end |