Class: Myflickr::MachineTag

Inherits:
Struct
  • Object
show all
Defined in:
lib/myflickr/machine_tag.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#namespaceObject

Returns the value of attribute namespace

Returns:

  • (Object)

    the current value of namespace



2
3
4
# File 'lib/myflickr/machine_tag.rb', line 2

def namespace
  @namespace
end

#predicateObject

Returns the value of attribute predicate

Returns:

  • (Object)

    the current value of predicate



2
3
4
# File 'lib/myflickr/machine_tag.rb', line 2

def predicate
  @predicate
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of 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