Class: GoogleApi::Shorten::Insert
- Defined in:
- lib/google_api/shorten/url/insert.rb
Instance Attribute Summary collapse
-
#long_url ⇒ Object
readonly
Returns the value of attribute long_url.
-
#short_url ⇒ Object
readonly
Returns the value of attribute short_url.
Instance Method Summary collapse
- #details(projection = 'FULL') ⇒ Object
-
#initialize(long_url) ⇒ Insert
constructor
A new instance of Insert.
Methods inherited from Url
Constructor Details
#initialize(long_url) ⇒ Insert
Returns a new instance of Insert.
8 9 10 11 12 |
# File 'lib/google_api/shorten/url/insert.rb', line 8 def initialize(long_url) @long_url = long_url @short_url = _session.check_session ? get : get_without_login end |
Instance Attribute Details
#long_url ⇒ Object (readonly)
Returns the value of attribute long_url.
5 6 7 |
# File 'lib/google_api/shorten/url/insert.rb', line 5 def long_url @long_url end |
#short_url ⇒ Object (readonly)
Returns the value of attribute short_url.
6 7 8 |
# File 'lib/google_api/shorten/url/insert.rb', line 6 def short_url @short_url end |