Class: HelpScout::Customer::Website

Inherits:
Object
  • Object
show all
Defined in:
lib/helpscout/models.rb

Overview

Customer::Website developer.helpscout.net/objects/customer/website/

Name   Type    Example                   Notes
id     Int     5584                      Unique identifier
value  String  http://www.somewhere.com

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ Website

Creates a new Customer::Website object from a Hash of attributes



812
813
814
815
# File 'lib/helpscout/models.rb', line 812

def initialize(object)
  @id = object["id"]
  @value = object["value"]
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



809
810
811
# File 'lib/helpscout/models.rb', line 809

def id
  @id
end

#valueObject (readonly)

Returns the value of attribute value.



809
810
811
# File 'lib/helpscout/models.rb', line 809

def value
  @value
end