Class: FuelSDK::Get

Inherits:
Objects::Base show all
Includes:
Objects::Soap::Read
Defined in:
lib/fuelsdk/objects.rb

Instance Attribute Summary collapse

Attributes included from Objects::Soap::Read

#filter

Attributes inherited from Objects::Base

#client, #properties

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Objects::Soap::Read

#info

Methods inherited from Objects::Base

id

Constructor Details

#initialize(client, id, properties, filter) ⇒ Get

Returns a new instance of Get.



320
321
322
323
324
325
# File 'lib/fuelsdk/objects.rb', line 320

def initialize client, id, properties, filter
  self.properties = properties
  self.filter = filter
  self.client = client
  self.id = id
end

Instance Attribute Details

#idObject

Returns the value of attribute id.



318
319
320
# File 'lib/fuelsdk/objects.rb', line 318

def id
  @id
end

Class Method Details

.new(client, id, properties = nil, filter = nil) ⇒ Object



332
333
334
335
336
# File 'lib/fuelsdk/objects.rb', line 332

def new client, id, properties=nil, filter=nil
  o = self.allocate
  o.send :initialize, client, id, properties, filter
  return o.get
end

Instance Method Details

#getObject



327
328
329
# File 'lib/fuelsdk/objects.rb', line 327

def get
    super id
end