Module: Catch

Defined in:
lib/catch.rb,
lib/catch/tag.rb,
lib/catch/note.rb,
lib/catch/user.rb,
lib/catch/media.rb,
lib/catch/place.rb,
lib/catch/client.rb,
lib/catch/search.rb,
lib/catch/comment.rb,
lib/catch/version.rb

Defined Under Namespace

Modules: Comment, Media, Note, Place, Search, Tag, User Classes: Client

Constant Summary collapse

VERSION =
"0.0.7"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.passwordObject

Returns the value of attribute password.



9
10
11
# File 'lib/catch.rb', line 9

def password
  @password
end

.usernameObject

Returns the value of attribute username.



8
9
10
# File 'lib/catch.rb', line 8

def username
  @username
end

Class Method Details

.configure {|username, password| ... } ⇒ Object

Configures default credentials easily

Yields:



13
14
15
16
# File 'lib/catch.rb', line 13

def configure
  yield self
  true
end