Class: Bitly::V3::MissingUrl

Inherits:
Object
  • Object
show all
Defined in:
lib/bitly/v3/missing_url.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(opts = {}) ⇒ MissingUrl

Returns a new instance of MissingUrl


5
6
7
8
9
10
11
12
# File 'lib/bitly/v3/missing_url.rb', line 5

def initialize(opts={})
  if opts
    @short_url = opts['short_url']
    @user_hash = opts['hash']
    @long_url = opts['long_url']
    @error = opts['error']
  end
end

Instance Attribute Details

#errorObject

Returns the value of attribute error


4
5
6
# File 'lib/bitly/v3/missing_url.rb', line 4

def error
  @error
end

#long_urlObject

Returns the value of attribute long_url


4
5
6
# File 'lib/bitly/v3/missing_url.rb', line 4

def long_url
  @long_url
end

#short_urlObject

Returns the value of attribute short_url


4
5
6
# File 'lib/bitly/v3/missing_url.rb', line 4

def short_url
  @short_url
end

#user_hashObject

Returns the value of attribute user_hash


4
5
6
# File 'lib/bitly/v3/missing_url.rb', line 4

def user_hash
  @user_hash
end