Class: FuelSDK::Post
- Inherits:
-
Objects::Base
- Object
- Objects::Base
- FuelSDK::Post
- Includes:
- Objects::Soap::CUD
- Defined in:
- lib/fuelsdk/objects.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Attributes inherited from Objects::Base
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(client, id, properties) ⇒ Post
constructor
A new instance of Post.
- #post ⇒ Object
Methods included from Objects::Soap::CUD
Methods inherited from Objects::Base
Constructor Details
#initialize(client, id, properties) ⇒ Post
Returns a new instance of Post.
344 345 346 347 348 |
# File 'lib/fuelsdk/objects.rb', line 344 def initialize client, id, properties self.properties = properties self.client = client self.id = id end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
342 343 344 |
# File 'lib/fuelsdk/objects.rb', line 342 def id @id end |
Class Method Details
.new(client, id, properties = nil) ⇒ Object
355 356 357 358 359 |
# File 'lib/fuelsdk/objects.rb', line 355 def new client, id, properties=nil o = self.allocate o.send :initialize, client, id, properties return o.post end |
Instance Method Details
#post ⇒ Object
350 351 352 |
# File 'lib/fuelsdk/objects.rb', line 350 def post super end |